ערוך

שתף באמצעות


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)

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)

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)

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
Public Shared Sub Transform (xamlReader As XamlReader, xamlWriter As XamlWriter)

Parameters

xamlReader
XamlReader

The XamlReader implementation to use.

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.

Applies to

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
Public Shared Sub Transform (xamlReader As XamlReader, xamlWriter As XamlWriter, closeWriter As Boolean)

Parameters

xamlReader
XamlReader

The XamlReader implementation to use.

xamlWriter
XamlWriter

The XamlWriter to use.

closeWriter
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