XamlXmlReaderSettings.XmlSpacePreserve Property

.NET Framework (current version)
 

Gets or sets a value that determines whether the XAML reader instructs any XAML writers to write xml:space attributes in nodes. If that behavior is desired, this information is passed through shared XAML schema context.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public bool XmlSpacePreserve { get; set; }

Property Value

Type: System.Boolean

true if writers that are processing the XAML node stream can write xml:space="preserve" in output; false if xml:space attributes cannot be written in nodes.

The XML whitespace concepts are not robust enough to apply to XAML, and are typically ignored by XAML readers.

.NET Framework
Available since 4.0
Return to top
Show: