1

I am trying to use Visual Studio DGML viewer / editor to build a directed graph. I would like to be able to add nodes and links with pre-defined custom properties. As of now, if I right click on the DGML document, I can add a Generic Node with no custom properties. Even if I assigned a Category to this node, I don't seem to be able to add a custom property to this node. I tried to do it outside of Visual Studio using the GraphModel. It works but the only viewer available is Visual Studio, hence each time I add a nodes programmatically, VS asks me if I want to reload the modified .dgml file, annoying...

So is there a way to add custom node / link to a .dgml graph within Visual Studio ?

ben
  • 321
  • 3
  • 13

2 Answers2

0

When you view the DGML code, you came make changes that take place immediately:

  1. Right click, select "View DGML" code or under View heading, select "View DGML".
  2. Select a line under the Nodes and copy & paste.
  3. Change the Node ID and Label to whatever you want.
Kahlan
  • 55
  • 1
  • 11
0

Right there is no UI for adding custom properties, you have to edit the XML directly.

Chris
  • 532
  • 3
  • 8