如何在特定的EntranceThemeTransition完成之前忽略所有用户交互? (C#) [英] How to ignore all user interaction until a specific EntranceThemeTransition finishes? (c#)
问题描述
我有一个弹出窗口,带有动画进入屏幕,但是用户可能想要加快进程并疯狂点击弹出窗口,这可能会解除弹出窗口(我不想要)。
I have a popup that enters screen with animation, but user may want to speed up the process and click wildly to the popup, that may dismiss the popup (which i don't want).
1)我可以禁用与应用程序的完全用户交互吗?
1) Can i disable FULL user interaction with the application?
2)我可以检测到EntranceThemeTransition的结束吗?
2) Can i detect the end of the EntranceThemeTransition?
推荐答案
我认为你需要研究这些属性:
I think you need to look into these properties:
如果你想像毯子那样做,你可以添加一个网格或其他覆盖所有元素的东西,并将这些值设置为false,并将网格放在画布内,这样你就可以设置网格的z-index比你的应用程序
的其余部分更高的值。
If you want to do this like a blanket you can add a grid or something else that covers all of your elements and set these values to false, and put the grid inside of a canvas so you can set the z-index of the grid to a higher value than the rest of your application.
我看不到任何在EntranceThemeTransition结束时触发的事件,但你可能会尝试尝试控件的Loaded事件。
I don't see any events that fire when the EntranceThemeTransition ends, but you might try experimenting with the Loaded event of your controls.
这篇关于如何在特定的EntranceThemeTransition完成之前忽略所有用户交互? (C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!