【发布时间】:2018-09-23 07:32:27
【问题描述】:
我正在使用 UWP 并使用 ContentDialog 来显示内容。我想通过按 ESC 按钮来防止用户关闭对话框。我尝试了这个解决方案,但是当我设置 Cancel = true 时。我无法处理主按钮中的点击事件:
How to prevent the ContentDialog from closing when home key is pressed in Windows phone 8.1..?
我们有什么办法防止它发生吗?无论如何,我的目的是锁定屏幕。
【问题讨论】: