I've started playing around with DGML for visualizing directed graphs based on some manufauctring process flow data. It works slicker than proverbial snot and is quite easy to generate.
The only problem is that the only DGML viewer I can find is VS.NET 2010. It appears that the viewer is built on MSAGL, but even that doesn't appear to support DGML directly.
Does a standalone DGML viewer exist? Preferably as an embeddable component. Even more preferably as WPF.
I encourage you to submit a request at Microsoft Connect as further support for a standalone DGML viewer. It might help persuade the product team that there's enough of a demand for one.
The DGML Editor was not available in Visual Studio 2017 by default so I could not see DGML files visually and only saw them in the xml format. I had to fix this by explicitly installing the DGML editor. Please install it as such: (Tools > Get tools and features... > Individual Component > Code tools > DGML Editor)
The DgmlPowerTools Visual Studio 2012 package gives you the option to export DGML to SVG:
https://visualstudiogallery.msdn.microsoft.com/46b71f5f-a4d5-4867-9d50-0416f7aefe28
Alternatively, I'm pretty sure given a few free weekends it would be easy to knock up something to convert DGML to HTML (e.g. using HTML5 Canvas to display, or one of the many graphing libraries such as D3.js)...
Take a look at Graphviz DOT. It can generate many different graphical output formats including PNG, JPG, PDF, SVG. It uses syntax similar to DGML.
来源:https://stackoverflow.com/questions/5206450/is-there-a-dgml-viewer