[experience sharing] dropdownbutton collapse

2 posts, 0 answers
  1. Luc
    Luc avatar
    4 posts
    Member since:
    Jul 2013

    Posted 20 Sep 2013 Link to this post

    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);
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 25 Sep 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top