WPF mouse behavior when ComboBox is focused
When the WPF ComboBox is clicked and in focus, the only interaction that happens after that might be with the ComboBox. If anything interacts, including a window function ( minimize
, restore
, close
, resize
), and any control in a window, the action is ignored and ComboBox loses focus.
In addition, MouseEnter
and MouseLeave
on the buttons the windows are still active, but when MouseEnter
the window border (?) Occurs, the mouse pointer does not change to the resize pointer. This behavior makes sense because of the use of the ComboBox
flyout control. The popup menu control exists independently of the main visual tree and if the window is moved or resized, the popup remains stationary, floating above the main window.
I tried using Reflector to see what it does ComboBox
, but I couldn't find what I'm looking for. Basically, I don't know if this behavior comes from a window, ComboBox or if it has something to do with the popup. How can I solve this problem?
a source to share
In your description, you are correct, the popup retains all focus of the action until it loses focus itself. If you're trying to change the functionality of the ComboBox, you might want to look at creating your own ControlTemplate that behaves differently and doesn't retain the default action for the popup menu.
Hope this helps, not really sure what you are trying to do.
a source to share