RadRichTextBoxRibbonUI: Font family not set

2 posts, 0 answers
  1. caleb
    caleb avatar
    32 posts
    Member since:
    Sep 2011

    Posted 02 Dec 2016 Link to this post

    Hello there,


    I'm using the Silverlight UI v. 2016.2.613.1050. I'm having a strange issue with the font family dropdown in the RadRichTextBoxRibbonUI.  It's not set when the form loads. 

    Here's the xaml for the Ribbon:

            DataContext="{Binding Commands, ElementName=radRichTextBox}"
            ApplicationName="Document editor"
            BackstageClippingElement="{Binding ElementName=LayoutRoot}"

    Here's the xaml for the combo box:

        CommandParameter="{Binding SelectedValue, RelativeSource={RelativeSource Self}}"
        telerik:ScreenTip.Description="Change the font family."
        ItemsSource="{Binding RegisteredFonts, Source={StaticResource FontFamiliesProvider}}"
        telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeFontFamilyCommand}"


    Here's the xaml for the rad rich text box:

                    IsSpellCheckingEnabled="{Binding Source={StaticResource userPreferencesViewModelNew}, Path=IsSpellCheckEnabled}"
                    FontFamily="{Binding Source={StaticResource userPreferencesViewModelNew}, Path=TextFontFamily}"
                    FontSize="{Binding Source={StaticResource userPreferencesViewModelNew}, Path=TextFontSize}"
                <telerik:RadDocument SectionDefaultPageSize="400,800" />


    The font family is set in the Rad Rich Text Box correctly.  It's not reflecting in the dropdown.

    Using the VisualStudio2013 theme with unmodified xaml styles.


    Any thoughts on what is incorrect here?






  2. caleb
    caleb avatar
    32 posts
    Member since:
    Sep 2011

    Posted 09 Dec 2016 in reply to caleb Link to this post

    Hello there,

    I was using a custom font family for the Rich Text Box.  I noticed that the code sample provided by Telerik also did not set the font family as well.  After that realization I just created a converter to set the SelectedIndex on the Font Family dropdown.  Problem solved.


Back to Top