Font Setting for the entire application

2 posts, 1 answers
  1. pierre-jean
    pierre-jean avatar
    159 posts
    Member since:
    Apr 2011

    Posted 29 Feb 2012 Link to this post

    I I wish to let the user select the font for the entire application which is composed of a RadRibonForm and multiple Dialog forms and users controls.
    Setting through me.font = userfont in the RadRibonForm does not changes the font of the form itself and of the dialog and usercontrols.
    I must be missing something very simple but what ... I have not found answers in the telerik or windows forums

  2. Answer
    Boryana avatar
    330 posts

    Posted 05 Mar 2012 Link to this post


    Thank you for contacting us.

    All predefined themes, including ControlDefault, assign specific Font to each of our control in order to guarantee consistent look of the whole theme. In this sense, there is not a single line of code that changes the Font of the entire application. To achieve the desired outcome you will need to set the Font of the controls on your form manually.

    Typically, you will need to set the Font of the control, as is the case with smaller and simpler controls, e.g. RadButton, RadCheckBox:

    Me.RadButton1.Font = customFont
    Me.RadCheckBox1.Font = customFont

    However, there are cases where you will need to set the Font property of the element as well. Currently, this is the case with RibbonBarElement. This is a considered issue and it will be addressed in a future release:
    Me.Font = customFont
    Me.RibbonBar.RibbonBarElement.Font = customFont

    I hope you find this helpful. Let me know if you have further questions.

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top