How to dismiss a popup in Silverlight when clicking outside of the control?

后端 未结 7 2412
南旧
南旧 2020-12-29 05:24

In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of

7条回答
  •  自闭症患者
    2020-12-29 05:33

    A simpler alternative (although not exactly what you asked for) would be to close the popup on MouseLeave. MouseLeave on the Popup object itself wont work, but MouseLeave on the highest level container within the Popup does.

提交回复
热议问题