Anton__

I'm trying to serialize a custom object to xaml, but running into stack overflow. The object Im serializing has another object as Child, which in turn has a reference to the object Im calling XamlWriter.Save(...) on

How can I avoid looping

Maybe there is a better way to do it I saw some people were using classes from System.Windows.Markup.Primitives, but I'm not sure how they should be used...

Any suggestions

Thanks

Anton



Re: Windows Presentation Foundation (WPF) Serializing objects with XamlWriter

Drew Marsh

You should be able to mark that property with a DesignerSerializationVisibilityAttribute with a visibility value of Hidden.

HTH,
Drew





Re: Windows Presentation Foundation (WPF) Serializing objects with XamlWriter

Anton__

Drew, you'r the best xD