อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


XamlXmlReaderSettings.XmlSpacePreserve Property

Definition

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.

C#
public bool XmlSpacePreserve { get; set; }

Property Value

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.

Remarks

The XML white-space concepts are not robust enough to apply to XAML and are typically ignored by XAML readers.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10