Click or drag to resize
ReaderWmfGetXaml Method
Gets xaml of the last read metafile with the default setting for WPF.

Namespace: Ab2d
Assembly: Ab2d.ReaderWmf (in Ab2d.ReaderWmf.dll) Version: 7.1.5512.1040
Syntax
C#
public string GetXaml()

Return Value

Type: String
xaml of the last read metafile
Remarks

Read or ReadGeometry must be called before using GetXaml.

To specify detailed options for xaml or to get xaml for Silverlight use GetXaml method.

Examples
The following sample reads the mySample.wmf file, gets its xaml (for WPF) and saves it into a file.
string xaml;
Viewbox sampleViewbox;

sampleViewbox = myReader.Read(@"c:\mySample.wmf");
xaml = myReader.GetXaml();

System.IO.File.WriteAllText(@"c:\mySample.xaml", xaml);
See Also