My WPF Ribbon's PopupButton popup contains a DataGrid and some other controls. Unfortunately the popup quite often gets closed when for whatever reason one of the controls loses focus or is clicked.
I am aware of the Ribbon controls and their StaysOpenOnClick property, but that doesn't help in my case, because my Popup has to contain other controls like for example a DataGrid.
Is there any way to fix this without implementing a lot of hacks?
It would be great, if the popup only gets closed, if the user really clicks somewhere outside the popup and not because of an action inside the popup.