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

后端 未结 7 2413
南旧
南旧 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:37

    i have posted a solution for this on my blog, you can see the post here - Silverlight: close Popup on click outside. as you can see the use is very simple - it is an attached property you add on your popup. you do not have to add any wrappers, you do not have to take care if you do or do not have some background color... my code will take care of it all.

提交回复
热议问题