Hide wpf popup when click on a Winform control
-
06-02-2021 - |
Domanda
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?
Soluzione
Did you try StaysOpen=false?
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow