You should set the StackPanel Background
property in order to close the RadSplitButton DropDownContent
when you click outside the control.
The reason for this requirement is that by default the Background
property has value of Null
. Elements with Null
background cannot receive the mouse click events and therefore the SplitButton
can't detect that it has to close its DropDown
If, on the other hand, you want to close the ListBox
when you select one of its items you can use the RadSplitButton IsOpen
which controls the visual state of the DropDownContent.
In your case, you can set RadSplitButton.IsOpen
in the SelectionChanged
event handler of the ListBox
to close the drop down content when a ListBoxItem
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>