This project has moved. For the latest updates, please go here.

SplitButton close drop down

Aug 4, 2011 at 10:04 AM


How can I close the drop down content of menu items, after selection.

Thank you 

Aug 4, 2011 at 2:35 PM

Set the DropDownButton.IsOpen property to false.

Aug 4, 2011 at 5:07 PM

Thank you,

Sorry,but I still don't understand where I can put it


<extToolkit:SplitButton Command="{Binding AddNewTCCmd}" CommandParameter="{Binding SplitBtnLabel }">






<MenuItem Header="Test



 <MenuItem Header="Test1"/>



</extToolkit:SplitButton.DropDownContent >


</extToolkit:SplitButton >

Aug 4, 2011 at 5:10 PM

You will need to handle the Click event of the MenuItem and in the handler you can close the DropDown.  Since you will probably have more than one MenuItem I would suggest using an attached event on the StackPanel:

<StackPanel MenuItem.Click="MenuItem_Click">