Export (0) Print
Expand All

XamlServices.Transform Method (XamlReader, XamlWriter, Boolean)

.NET Framework 4.6 and 4.5

Connects a XamlReader and a XamlWriter to use a common XAML node set intermediary. Potentially transforms the content, depending on the types of readers and writers that are provided. Provides a parameter for specifying whether to close the writer after the call is completed.

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

public static void Transform(
	XamlReader xamlReader,
	XamlWriter xamlWriter,
	bool closeWriter
)

Parameters

xamlReader
Type: System.Xaml.XamlReader

The XamlReader implementation to use.

xamlWriter
Type: System.Xaml.XamlWriter

The XamlWriter to use.

closeWriter
Type: System.Boolean

true to close the writer after the call is complete; false to leave the writer active at the last written position.

ExceptionCondition
ArgumentNullException

xamlReader or xamlWriter input is null.

XamlException

The XAML schema context does not match between the provided xamlReader and xamlWriter.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft