WPF Popup close automatically
Question
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 itself.
Solution
<Popup x:Name="pop" IsOpen="False" StaysOpen="False">
OTHER TIPS
in WinRT and universal app you can use
IsLightDismissEnabled="True"
its will close automatically when click any where.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow