Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Font size
posted

Hello, I have two questions.

1)  How can I set the initial font size. 

2) When a selection is made I would like to get the font size, if it is bold, and the type of font in the selection.  I realize this might be complicated because the user could select different styles of font in that control but I am curious if there is a way around this.  The end goal here is to have a context menu I created following your examples to fill in with the selected text values.

Regards

Parents
No Data
Reply
  • 22015
    posted

    Hello Aaron,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application for you. Regarding your fist question about setting the font size initially I can suggest to use the CharacterSettings for the XamRichTextEditor.

     

    Regarding your second question about getting the size - you can handle the SelectionChanged event of the XamRichTextEditor and get the FontSize property of the XamRichTextEditor.

     

    I have implemented the above mentioned suggestions in the attached sample application for you. Please find the attachment and feel free to let me know if you have any further questions on this matter.

    RichTextEditor_Text.zip
Children