XamlServices.Transform XamlServices.Transform XamlServices.Transform Method

Definition

Connects a XamlReader and a XamlWriter in order to use a common XAML node set intermediary. Potentially transforms the content, depending on the types of readers and writers that are provided.

Overloads

Transform(XamlReader, XamlWriter) Transform(XamlReader, XamlWriter) Transform(XamlReader, XamlWriter)

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.

Transform(XamlReader, XamlWriter, Boolean) Transform(XamlReader, XamlWriter, Boolean) Transform(XamlReader, XamlWriter, Boolean)

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.

Transform(XamlReader, XamlWriter) Transform(XamlReader, XamlWriter) Transform(XamlReader, XamlWriter)

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.

public:
 static void Transform(System::Xaml::XamlReader ^ xamlReader, System::Xaml::XamlWriter ^ xamlWriter);
public static void Transform (System.Xaml.XamlReader xamlReader, System.Xaml.XamlWriter xamlWriter);
static member Transform : System.Xaml.XamlReader * System.Xaml.XamlWriter -> unit

Parameters

xamlReader
XamlReader XamlReader XamlReader

The XamlReader implementation to use.

xamlWriter
XamlWriter XamlWriter XamlWriter

The XamlWriter to use.

Exceptions

xamlReader or xamlWriter input is null.

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

Remarks

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

Transform(XamlReader, XamlWriter, Boolean) Transform(XamlReader, XamlWriter, Boolean) Transform(XamlReader, XamlWriter, Boolean)

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.

public:
 static void Transform(System::Xaml::XamlReader ^ xamlReader, System::Xaml::XamlWriter ^ xamlWriter, bool closeWriter);
public static void Transform (System.Xaml.XamlReader xamlReader, System.Xaml.XamlWriter xamlWriter, bool closeWriter);
static member Transform : System.Xaml.XamlReader * System.Xaml.XamlWriter * bool -> unit

Parameters

xamlReader
XamlReader XamlReader XamlReader

The XamlReader implementation to use.

xamlWriter
XamlWriter XamlWriter XamlWriter

The XamlWriter to use.

closeWriter
Boolean Boolean Boolean

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

Exceptions

xamlReader or xamlWriter input is null.

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

Applies to