Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Serialize WPF and telerik controls [modified]

Serialize WPF and telerik controls [modified]

Scheduled Pinned Locked Moved WPF
helpcsharpwpfxmlquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    michalush85
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • M michalush85

      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

      S Offline
      S Offline
      souidi abderrahman
      wrote on last edited by
      #2

      Try to Serialize the Object.[[^]]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups