Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 29, 2022 22:53
Show Gist options
  • Save aspose-com-gists/3d89cf6bdf9e645daf99a46b9cfede3e to your computer and use it in GitHub Desktop.
Save aspose-com-gists/3d89cf6bdf9e645daf99a46b9cfede3e to your computer and use it in GitHub Desktop.
Convert Visio VSD VSDX to XAML Programmatically in C# .NET
// Load input Visio diagram
Diagram diagram = new Diagram("Input.vsd");
// Create an instance of XAMLSaveOptions class
XAMLSaveOptions options = new XAMLSaveOptions();
options.SaveFormat = SaveFileFormat.Xaml;
// Save the output XAML file
diagram.Save("output.xaml", options);
// Load input Visio diagram
Diagram diagram = new Diagram("Input.vsdx");
// Create an instance of XAMLSaveOptions class
XAMLSaveOptions options = new XAMLSaveOptions();
options.SaveFormat = SaveFileFormat.Xaml;
// Save the output XAML file
diagram.Save("output.xaml", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment