开发者

WPF Popup close automatically

开发者 https://www.devze.com 2022-12-22 02:35 出处:网络
How to close the WPF Popup in a WPF Control if clicked outside the Popup area or if the Parent Control is moved ?

How to close the WPF Popup in a WPF Control if clicked outside the Popup area or if the Parent Control is moved ?

I cannot check it from the Parent Control, Everything must be done by the control itsel开发者_如何学Cf.


 <Popup x:Name="pop" IsOpen="False"  StaysOpen="False">


in WinRT and universal app you can use

IsLightDismissEnabled="True"

its will close automatically when click any where.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号