RadSplitButton - change font size?

2 posts, 0 answers
  1. Yang
    Yang avatar
    6 posts
    Member since:
    Mar 2015

    Posted 07 Apr Link to this post

    Hi, 

       I tried to set FontSize of a RadSplitButton in the designer, or set it in the code like: this.radSplitButton1.Font = new System.Drawing.Font(...).

       But nothing changed.

       Finally I found the way which works:   

        this.radSplitButton1.DropDownButtonElement.ActionButton.Font = new System.Drawing.Font(...).

       It's so complex just to change a Font.

     

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 08 Apr Link to this post

    Hello Yang,

    Thank you for writing.

    All our controls are composed of elements which can be nested in each other, thus creating the so-called Element tree. Each RadControl has an element tree inside. These elements make our controls that flexible and customizable. You can get detailed information on how our controls are constructed in the TelerikPresentationFramework section of our online documentation: http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/overview/overview

    That is why in order to change the font of a RadSplitButton, you should apply it to the respective inner element.

    I hope this information helps. Should you have further questions I would be glad to help.

     Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top