PeterM
PeterM

Reputation: 2702

XmlAttributes.XmlIgnore Equivalent for XAML

How do I tell the xaml serilization to ignore a property. IE the equivalent of the XmlAttributes.XmlIgnore attribute for xml serialization.

Class MyObject

   'Is there an equivalent of this for xaml?
   <XmlIgnoreAttribute()> Public Property DontSerializeMe as String

End Class

Upvotes: 2

Views: 646

Answers (1)

Bryan Legend
Bryan Legend

Reputation: 6896

Yes:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

Upvotes: 2

Related Questions