I want to add to my app RadSplitButton, but I can't configure it normally. I was looking to example code from telerik how to use this type of buttons. But when I added it to my project with all settings, buttons behavior was diffrenet from the telerik example. Allways when I am pressing on the button in all the places(Arrow button, Action button) the DropDownMenu is opened (the differance is that in the telerik example DropDownMenu opened only when Arrow button pressed).
The 1st question is why example has't all the settings? And I think I am not telling about one property that has be forgotten, because selection of the button in example was modified too.
I tried to find a property that can disable menu popupping, but my attempt was failed.
I found ugly solution:
- Set property DropDownButtonElement.DropDownMenu.PopupElement.Visibility = ElementVisibility.Collapsed
- Add click method to Click Event for DropDownButtonElement.ActionButton, and add to the start of the method this function: DropDownButtonElement.DropDownMenu.Hide()
This solution works fine, but I believe that there is another way to disable menu popup on. Have you guys any ideas?