如何冻结WPF页面。 [英] How to freeze the WPF page .
本文介绍了如何冻结WPF页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在按钮点击的wpf页面中冻结(忽略按钮点击事件),直到它到达下一页。
即当我点击按钮时不需要再响应任何进一步的点击事件,直到它到达下一页。当我到达下一页时,它将正常工作。
我希望我很清楚。
我尝试了什么:
我正在尝试以下事项
How to freeze(ignore button click event) in the wpf page on button click till it reaches to the next page.
i.e when i click on button it need not to respond any further click event till it reaches to the next page. When i reaches to the next page it will work properly.
I hope i am clear.
What I have tried:
well I am trying the following things
this.Enabled = false;
CaptureTouch(touchDevice);
推荐答案
this.Enabled = false;
这将禁用该按钮。一旦准备好再次接受点击,只需设置为 true
。
This will disable the button. Simply set to true
once you are ready to accept clicks again.
这篇关于如何冻结WPF页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文