Data Binding to RichTextBox

2 posts, 0 answers
  1. o
    o avatar
    20 posts
    Member since:
    Jan 2008

    Posted 17 Sep 2013 Link to this post

    Hi,

    How I can do binding to RTB.

    in C# :

    richTextBox1.Document

    But if i want to bind in XML How.

    I did the following but not working..

    <RichTextBox FontSize="22" MaxWidth ="450" MaxHeight ="600"   Name="richTextBox1"
                                Document ="{Binding FLD}" VerticalAlignment="Top"
                                Background="Brown"  FontStretch="Condensed"
                                FontFamily="KFGQPC Uthmanic Script HAFS" >
                       <RichTextBox.Resources>



    Please help.

    Thanks

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 20 Sep 2013 Link to this post

    Hello,

    In order to bind RadRichTextBox you can take advantage of one of the Data Providers. Depending on the data you are binding to, you can choose one of the rich text providers or the plain text provider - TxtDataProvider.

    I hope this helps! Let us know if you have further questions or comments.

    Regards,
    Petya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top