Version 2.3.2 enables styling of diagram items through the WPF styling system. Now DiagramItem provides a Style property, which can be set to an instance of the System.Windows.Style class that sets the Brush, Stroke*, Text* and Font* dependency properties we introduced in the last release.
If a Style is not explicitly set, the items will use global styles defined for a type in the application or window resource dictionary. For example if this style is defined in the window resource, ShapeNodes will have a thick red border:
<Style TargetType="diag:ShapeNode" >
<Setter Property="Stroke" Value="Red"/>
<Setter Property="StrokeThickness" Value="5"/>
<Setter Property="Brush" Value="LightYellow" />
</Style>
Since style setters have lower precedence than local property values, styling works immediately only for items created through no-args constructors. Properties of items loaded from a file or created through a DiagramItem(Diagram) constructor will probably have local values, which can be cleared through the ClearStyleableProperties method in order to enable styling.
This version also renames the old Style properties of TableNode and DiagramLink to Shape, and their corresponding enumeration types are now called TableShape and LinkShape.
If anyone is interested in trying out the beta, please download this archive, which includes the updated diagramming.wpf assemblies:
https://mindfusion.eu/_beta/wpfdiag232.zipStoyan