I'm working on a WPF application which has a dropdown button. When "expanded", it displays a custom UserControl inside a ContextMenu. This control includes two buttons, one for Open and one for Save. The idea is for each of these buttons to display the appropriate file dialog.
My problem is that, when the dialog is displayed, the ContextMenu (and thus the control) closes. I'd like to keep it visible while the dialog is open. At the same time, I'd like the dialog to remain in front of/over it.
So my question is, can this be done at all in WPF? I suspect it has to do with how the parent Window handles the LostFocus event, but I'm not sure.