XamlServices.Transform Method (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.
Assembly: System.Xaml (in System.Xaml.dll)
public static void Transform( XamlReader xamlReader, XamlWriter xamlWriter, bool closeWriter )
Available since 4.0