Hi,
I've created a TabPanelItem with 4 SplitButton's each one has 3 RibbonCheckBox's.
I'm trying to create MouseEnter and MouseLeave events so that the SplitButton will DropDown on MouseEnter and will close on MouseLeave.
Each event is working great and firing separately, they just won't work together for some reason, if I'm using both events I need to click on the mouse in order to fire the MouseLeave event.
Is there a way to close DropDown when I leave the button without clicking on the mouse?
Thanks!
XAML: (I left just one SplitButton, other 3 are the same)
<syncfusion:Ribbon.TabPanelItem >
<syncfusion:ButtonPanel >
<!--CH1-->
<syncfusion:SplitButton Label="CH1" x:Name="CH1" SizeForm="Small" IsSmallImageVisible="False" MouseEnter="CH1_MouseEnter" MouseLeave="CH1_MouseLeave" >
<syncfusion:RibbonCheckBox Name="CH1_Output" Content="Output"></syncfusion:RibbonCheckBox>
<syncfusion:RibbonCheckBox Name="CH1_Active" Content="Active"></syncfusion:RibbonCheckBox>
<syncfusion:RibbonCheckBox Name="CH1_View" Content="View"></syncfusion:RibbonCheckBox>
</syncfusion:SplitButton>
</syncfusion:ButtonPanel>
</syncfusion:Ribbon.TabPanelItem>
CB:
private void CH1_MouseEnter( object sender, MouseEventArgs e )
{
CH1.IsDropDownOpen = true;
}
private void CH1_MouseLeave( object sender, MouseEventArgs e )
{
CH1.IsDropDownOpen = false;
}