DiagramNode node1 = new DiagramNode()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
Annotations = new ObservableCollection<DiagramNodeAnnotation>()
{
new DiagramNodeAnnotation()
{
Content = "Node",
Constraints = AnnotationConstraints.ReadOnly
}
},
Style = new NodeShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" }
}; |