Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
Show:
© 2015 Microsoft