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

Is it possible to serialize telerik controls?

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
liza g
Top achievements
Rank 1
liza g asked on 24 Aug 2010, 12:51 PM

Hi,

I have hashtable that contain wpf and telerik controls, and I need to serialize it to xml file. I found this code for wpf controls:

string savedButton = XamlWriter.Save(origianlButton);
File.WriteAllText(@"C:\test.xml", savedButton);

but it doesn't work for telerik controls, it stuck and I get this error:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

Is there any other way to do that?
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 24 Aug 2010, 02:55 PM
Hi liza g,

I was not able to reproduce the issue-I am sending you an example that demonstrates how to serialize our RadButton using the code you provided. Serialization in WPF is an interesting topic, but there are some limitations which you can see in the following link.

Please let me know if you need any additional information.

All the best,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
liza g
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or