开发者

Hide wpf popup when click on a Winform control

开发者 https://www.devze.com 2023-04-10 18:03 出处:网络
I开发者_运维百科 have an ElementHost object in a WinForm dialog. This elementhosts child is a Popup.

I开发者_运维百科 have an ElementHost object in a WinForm dialog. This elementhosts child is a Popup. I want to hide or close the Popup when the user clicks anywhere. I can do it when the click happened in the Popup. How to close it when the user clicks outside the popup, on a WinForm control?


Did you try StaysOpen=false?

0

精彩评论

暂无评论...
验证码 换一张
取 消