Class XamlExporter
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Exports a Viewport3D or 3D model to XAML.
public sealed class XamlExporter : Exporter<XmlWriter>, IExporter
- Inheritance
-
XamlExporter
- Implements
- Inherited Members
Constructors
XamlExporter()
Initializes a new instance of the XamlExporter class.
public XamlExporter()
Properties
CreateResourceDictionary
Gets or sets a value indicating whether to create a resource dictionary.
public bool CreateResourceDictionary { get; set; }
Property Value
- bool
trueif a resource dictionary should be created; otherwise,false.
Methods
Close(XmlWriter)
Closes this exporter.
protected override void Close(XmlWriter writer)
Parameters
writerXmlWriterThe writer.
Create(Stream)
Creates a new XmlWriter on the specified stream.
protected override XmlWriter Create(Stream stream)
Parameters
streamStreamThe output stream.
Returns
Export(Viewport3D, Stream)
Exports the specified viewport.
public override void Export(Viewport3D viewport, Stream stream)
Parameters
viewportViewport3DThe viewport.
streamStreamThe stream.
Export(Model3D, Stream)
Exports the specified model.
public override void Export(Model3D model, Stream stream)
Parameters
Export(Visual3D, Stream)
Exports the specified visual.
public override void Export(Visual3D visual, Stream stream)
Parameters
WrapInResourceDictionary(object)
Wraps the specified object in a resource dictionary.
public static ResourceDictionary WrapInResourceDictionary(object obj)
Parameters
objobjectThe object to be wrapped.
Returns
- ResourceDictionary
A resource dictionary.