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

后端 未结 7 2425
南旧
南旧 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:36

    On the first click, call the CaptureMouse() method on the control. Then call ReleaseMouseCapture() on the second click.

提交回复
热议问题