1

I've started to play with DGML, and I see in the schema that the Node element supports a Shape attribute.

I've tried things like <Node Shape='square'... with no effect.

Is Shape really supported in DGML?

Scott Weinstein
  • 18,222
  • 12
  • 71
  • 112

3 Answers3

2

For rectangles, you can use <Setter Property="NodeRadius" Value="0" />.

jmr
  • 21
  • 1
1

I don't appear to be able to get the shape attribute to affect anything either.

I assume you are using the new VS2010 viewer?

The following guide (which is a pretty handy reference, actually) does give this example:

Set the Shape property to None so that the icon replaces the shape. Use the Icon property to specify the location of the icon.

This does appear to work - setting shape="none" removes the shape.

It is likely that support for displaying different shapes has not been implemented in the viewer yet, so only 'none' makes any difference.

Fiona - myaccessible.website
  • 13,581
  • 15
  • 77
  • 114
1

You might consider reading:

http://social.msdn.microsoft.com/Forums/en/vsarch/thread/84400dea-3426-4e0e-8271-6af52ae1d1fb

about my DSL that maps some shapes to attributes (though there is no software there as yet) Shapes

Ciper
  • 19
  • 3