Font size for text provider

4 posts, 1 answers
  1. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 08 Aug 2012 Link to this post

    Hello
    I have following code:

    <telerik:TxtDataProvider Name="txtProvider"  RichTextBox="{Binding ElementName=rtbLog}" Text="{Binding Path=Log, Mode=OneWay}" />
    <telerik:RadRichTextBox Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Left" IsContextMenuEnabled="True" IsReadOnly="True" Margin="5,3,0,0" IsSelectionMiniToolBarEnabled="False" IsSpellCheckingEnabled="False" Name="rtbLog" VerticalAlignment="Top" />
    All I want is to display text, but I have following issues:

    1. I cannot set font size and familly. It is very big on the beggining. Even if I set font size for richtextbox it is simple not working.
    2. I have context menu enabled but no context menu is displayed. This is for read only purposes only so I would simply have copy context menu.
  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 10 Aug 2012 Link to this post

    Hello Marcin,

    Thank you for contacting us. Here are my suggestions:
    1. RadRichTextBox has a property DocumentInheritsDefaultStyleSettings which has to be set to True in order to set default style properties. You can find info on this topic in this article.
    2. There is a minimal set of assembly references you have to add if you want to use RadRichTextBox. The pop-ups, including the ContextMenu, are located in the Telerik.Windows.Controls.RichTextBoxUI assembly. This article can help you in this matter.

    Please, don't hesitate to get back to us if you need further assistance.

    All the best,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Sanket
    Sanket avatar
    6 posts
    Member since:
    Jan 2016

    Posted 29 Apr Link to this post

    How can I dynamically change font size of selected text in telerik rad rich text box?

     

    please help!

  5. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 03 May Link to this post

    Hi Sanket,

    Please, find the answer to this question in the other forum thread.

    Regards,
    Tanya
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top