uwp - UWP InAppNotification
问题描述
帮我找人。
我在带有 DataGrid 的应用程序中使用 InAppNotification,当我显示 InAppNotification 时它是透明的,我无法单击它。
透明的 InAppNotification :-
<MSControls:InAppNotification Grid.Row="1"
x:Name="MessageForUser"
HorizontalAlignment="Right">
</MSControls:InAppNotification>
private void Button_Click(object sender, RoutedEventArgs e)
{
MessageForUser.Show("Hello World!", 3000);
}
解决方案
InAppNotification
本身就像,Popup
你需要添加Click
或Tap
事件。就像下面一样。
<MSControls:InAppNotification Grid.Row="1"
x:Name="MessageForUser"
HorizontalAlignment="Right"
Tapped="MessageForUser_Tapped">
</MSControls:InAppNotification>
推荐阅读
- php - 在laravel上删除图像时如何清除客户端缓存?
- android - 如何禁用单选按钮上的双击事件?
- javascript - 如何通过异步等待在严格模式下正确使用集合
- c++ - 报告定义的函数中的错误
- angular - 无法准备好未定义的属性
- python - 指定当月的最后一天 pandas .to_datetime()
- javascript - 如何替换外部js文件中的变量名
- google-cloud-platform - GCP Cloud SQL 的私有 IP 地址范围被忽略
- java - 为什么不同自定义类加载器加载的类不能互相调用
- google-bigquery - BigQuery Google 时区转换