We have released version 1.5 of DiagramLite. It contains the following new features:
Support for Silverlight 4The package now includes a Silverlight 4 version of the MindFusion.Diagramming assembly, available in the VS2010 subfolder of the installation folder. That subfolder also includes sample projects for Visual Studio 2010. Silverlight 3 and Visual Studio 2008 are still supported.
Printing supportPrinting support is available in the Silverlight 4 version of the component. Call the Print method to print the current diagram. The PrintOptions class exposes the available settings for printing such as Margins and HeaderFormat. An instance of this structure is accessible via the diagram's PrintOptions property.
Visual statesThe DiagramItem class now defines two visual state groups. The group SelectionStates contains the Unselected and Selected states. The MouseStates group contains the MouseOut, MouseOver and MouseDown states. Note that the control does not provide any built-in animations for transitions between these states. If that's required, it can be implemented through custom Xaml templates where Storyboard objects are associated with states through the VisualStateManager.VisualStateGroups property.
Miscellaneous ~ To display a custom mouse cursor that does not depend on the current context, set the OverrideCursor property.
~ The CanUndo and CanRedo properties are enabled when there are actions in the undo queue that can be undone or redone.
~ ActionUndone and ActionRedone events are now raised when a Command is undone or redone.
~ Classes derived from DiagramLink can control the position of the link's TextBlock by overriding UpdateTextLayout.
~ A KeepRatio constraint added to NodeConstraint to enable locking the width to height ratio for a node.
~ LinkPasted and NodePasted events are raised when PasteSelection adds the corresponding types of items.
~ Improved hit-testing and link alignment to borders for RoundRect shapes.
~ Text wrapping can be enabled or disabled through the TextWrapping property.
Registered customers with an active upgrade subscription can download the licensed version from the
clients area on our site.
A trial version is available for download here:
https://www.mindfusion.eu/DiagramLiteTrial.zip
Enjoy!