This is a migrated thread and some comments may be shown as answers.

[experience sharing] dropdownbutton collapse

1 Answer 50 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 20 Sep 2013, 02:09 PM
I was a bit frustrated with the collapsing feature that hides the text of the buttons when the window is not wide enough, because only the buttons are affected, not the dropdownbuttons and splitbuttons, leading to a weird looking result when they are mixed in a same group.

I found the following solution: derive from DropDownButton, and override CreateChildElements with
base.CreateChildElements();
CollapsableButtonAdapter adapter = new CollapsableButtonAdapter(ActionButton)
    { ShouldHandleMouseInput = false }; // otherwise, the adapter swallows the clicks
Children.Add(adapter);

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Sep 2013, 11:22 AM
Hi Luc,

Thank you for sharing your experience with the community.

Should you have any other questions or suggestions do not hesitate to contact us.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
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 >>
Tags
RibbonBar
Asked by
Luc
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or