XamlType.LookupTrimSurroundingWhitespace Method

.NET Framework 4.6 and 4.5

Returns a value that indicates whether this XamlType should be serialized using a mode that trims surrounding whitespace.

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

protected virtual bool LookupTrimSurroundingWhitespace()

Return Value

Type: System.Boolean
true if this XamlType should be serialized in a mode that trims surrounding whitespace; otherwise, false.

This method can be invoked by calls to TrimSurroundingWhitespace.

The default implementation returns a value based on reading TrimSurroundingWhitespaceAttribute. It can also check BaseType for the attribute if no attribute is found on the immediate underlying type. If a value is unavailable, it returns false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft