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

Serialize RadRichTextBox

1 Answer 94 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
De Stefano
Top achievements
Rank 1
De Stefano asked on 22 Dec 2011, 10:17 AM
Hi I'm trying to serialize the RadRichTextBox control but I get the following error: "ambiguous match found."
this is my code

Canvas
cvs = new Canvas();
RadRichTextBox rch = new RadRichTextBox();

rch.Width = 100;

rch.Height = 100;

cvs.Children.Add(rch);

string str = System.Windows.Markup.XamlWriter.Save(cvs);


regards
Nicola De Stefano

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 23 Dec 2011, 09:53 AM
Hi Nicola De Stefano,

RadRichTextBox cannot be serialized with XamlWriter. We have not looked into the issue, as this is not a common scenario and we would appreciate some more details on your scenario and implementation.

Why do you need to serialize the whole RadRichTextBox? If you are looking for a way to persist different documents, you can use the available format providers to load and save the documents in different rich text formats.

Please, let us know if for some reason this approach will not be sufficient in your application. 

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
De Stefano
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or