
Aspose.Diagram for .NET 2.7.0 has been released. This release supports exporting Microsoft Visio diagrams to XAML format as well as getting connectors glued to a shape. A new API - Shape.GluedShapes - has been introduced and you can get a list of IDs for all the connectors glued to a specific shape using this API. This release also includes the most recent bug fixes.
Export Visio to XAML in C#
The following code sample shows how to convert or export Visio diagram to XAML in C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_LoadSaveConvert(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "ExportToXAML.vsd"); | |
// Save diagram | |
diagram.Save(dataDir + "ExportToXAML_out.xaml", SaveFileFormat.XAML); |
To view a complete list of new features and fixes and to download the new release of Aspose.Diagram for .NET, please visit the download page.