WPF Popup close automatically

PaN1C_Showt1Me picture PaN1C_Showt1Me · Mar 2, 2010 · Viewed 17.6k times · Source

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.

Answer

Djole picture Djole · Mar 17, 2010
 <Popup x:Name="pop" IsOpen="False"  StaysOpen="False">