This is a migrated thread and some comments may be shown as answers.

Data Binding to RichTextBox

3 Answers 326 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
o
Top achievements
Rank 2
o asked on 17 Sep 2013, 06:40 PM
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

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 20 Sep 2013, 01:42 PM
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 >>
0
Arvind
Top achievements
Rank 1
answered on 01 Sep 2017, 09:52 AM

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

0
Tanya
Telerik team
answered on 06 Sep 2017, 08:18 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
o
Top achievements
Rank 2
Answers by
Petya
Telerik team
Arvind
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or