Serialize WPF and telerik controls [modified]
-
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.
modified on Tuesday, August 24, 2010 2:56 AM
-
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.
modified on Tuesday, August 24, 2010 2:56 AM
Try to Serialize the Object.[[^]]