XamlServices::Transform Method (XamlReader^, XamlWriter^, Boolean)
.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. Provides a parameter for specifying whether to close the writer after the call is completed.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | xamlReader or xamlWriter input is null. |
| XamlException | The XAML schema context does not match between the provided xamlReader and xamlWriter. |
.NET Framework
Available since 4.0
Available since 4.0
Show: