Jobi Joy
Jobi Joy

Reputation: 50038

Close WPF PopUp when clicking on Window Title bar

I can see that the PopUp dropdown of a combobox gets closed if we click anywhere else in the app. How do I give that feature to my own Popup. I dont want to give a PreviewMouseDown event handler for the RootWindow to solve this issue. Something at the level of my userControl containing this popup.

Upvotes: 1

Views: 1050

Answers (1)

Stephen Wrighton
Stephen Wrighton

Reputation: 37819

Try this:

<Popup StaysOpen=”False“>

Upvotes: 1

Related Questions