0

I working on a WPF Ribbon application using a third party source (Syncfusion). In my application I have a SplitButton with several CheckBoxes in it, I'm trying to implement MouseHover like action to my SplitButton so that on MouseEnter the DropDown will open and on MouseLeave the DropDown will close.

MouseEnter works great.

MouseLeave works great on a regular button (for changing the background for example) but on SplitButton it won't fire unless I press on the mouse (left or right button - it doesn't matter).

Any chance I could close the DropDown upon leaving the SplitButton without clicking on the mouse? Maybe by using another event?

Any help would be appreciated.

dov
  • 27
  • 7
  • WPF don't have splitbutton (Except RibbonSplitButton). Do you use it from other source (codepack, third party source,...)? – NoName Mar 01 '16 at 09:57
  • I'm using a SplitButton from Syncfusion, for my WPF Ribbon application. – dov Mar 01 '16 at 10:14
  • Okay. You should say (edit) it in your question. Otherwise people don't know how to answer you. – NoName Mar 01 '16 at 10:17
  • Have you tried implementing MouseLeave handler without implementing MouseEnter handler just for testing? – o_weisman Mar 01 '16 at 14:04
  • I tried that right now. MouseLeave working great without MouseEnter. They just won't work together. – dov Mar 01 '16 at 14:46
  • Probably means that your MouseEnter implementation somehow messes up the logic of the framework or prevents it from logging that the mouse is within the control. Do you set `e.Handled = false;` in MouseEnter handler ? BTW, if you want me to respond quickly, you need to tag me using @ sign. – o_weisman Mar 02 '16 at 13:44

0 Answers0