Marks a property for XAML serialization and supplies the default value used when deciding whether to write it.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
[AttributeUsage(AttributeTargets.Property)]
public class XamlSerializableAttribute : Attribute, _Attribute
Inheritance: objectAttributeXamlSerializableAttribute
Implements:
Inherited Members
Constructors
Initializes the attribute without an explicit property default; null-valued properties are still omitted from XAML.
C#
public XamlSerializableAttribute()
Initializes the attribute with a value that the XAML writer treats as the property's default.
C#
public XamlSerializableAttribute(object defaultValue)
The value normally omitted when it matches the property's current value.
Properties
Gets the value the XAML writer normally treats as the property's default and omits from the output.
C#
public object DefaultValue { get; }