Data Binding to RichTextBox

4 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
    983 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. Arvind
    Arvind avatar
    11 posts
    Member since:
    Jan 2017

    Posted 01 Sep in reply to Petya Link to this post

    Hi Team.

    I have two xml file ,and we need to highlight the difference.

    Could you please provide the any sample code in telerik.

     

    Thanks

  4. Tanya
    Admin
    Tanya avatar
    583 posts

    Posted 06 Sep Link to this post

    Hello Arvind,

    At this point, RadRichTextBox doesn't provide an option to compare documents. We have already logged a feature request for this functionality and you can cast your vote for its implementation as well as track its status using the related public item on our feedback portal.

    Regards,
    Tanya
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top