XamlServices.Transform Method (XamlReader, XamlWriter)

.NET Framework (current version)
 

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.

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

public static void Transform(
	XamlReader xamlReader,
	XamlWriter xamlWriter
)

Parameters

xamlReader
Type: System.Xaml.XamlReader

The XamlReader implementation to use.

xamlWriter
Type: System.Xaml.XamlWriter

The XamlWriter to use.

Exception Condition
ArgumentNullException

xamlReader or xamlWriter input is null.

XamlException

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

This method is a wrapper around Transform(XamlReader, XamlWriter, Boolean), where closeWriter is specified as true.

.NET Framework
Available since 4.0
Return to top
Show: