RadRichTextBoxRibbonUI - How to apply custom style to FontPropertiesDialog?

2 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 06 Nov 2012 Link to this post


    How do I apply a custom style to the FontPropertiesDialog (to start, but all of the exposed dialogs in the future) used in the RadRichTextBoxRibbonUI?  I want to make the dialogs appear as if they "belong" to our application...

  2. Todor
    Todor avatar
    168 posts

    Posted 07 Nov 2012 Link to this post

    Hello Rob,

    Firstly, to style the RadRichTextBox dialogs, you should use implicit styles in your application. This will say that you have to use NoXAML binaries and external themes in your project. How to do that, you can read here

    Secondly, the RadRichTextBox dialogs are composed by other controls - RadButtons, RadListBox and other Telerik RadControls. The dialogs also contain default Microsoft controls such as RadioButton, CheckBox, ScrollViewer and etc. These default Microsoft controls are styled in the System.Windows.xaml file. 

    In order to create your own custom styles, you should style the controls they use first. You should create these styles based on the previously created ones with the same TargetType.
    This will say that if you want to set the Background of the RadButton control to Blue and keep all its other properties, you should do it like this:

    <Style TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}">
            <Setter Property="Background" Value="Blue" />

    You can read more about how to base your own styles here.
    In addition, you can see the styles' keys in the respective xaml file which contains the control's style.

    For your convenience, I have created a sample demo project which illustrates the above described approach. It is attached in my post, so you can see it.

    Hope this helps. If you have any other questions, please get back to us.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top