Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for WPF, V3.2 (Read 1671 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 687
Joined: Apr 6th, 2003
Diagramming for WPF, V3.2
Dec 17th, 2014 at 10:46am
Print Post  
We have released version 3.2 of WpfDiagram. It adds the following new features:

Support for Xaml templates
~ Template property has been added to the base DiagramNode class and now all node types can be templated. A NodeRenderer element can be added to templates to invoke nodes' standard low-level drawing code before rendering custom template elements.
~ TableNode cells can be templated by setting the Template property of the Cell class for individual cells, or by defining a template for all cells using a default style with {x:Type diag:TableNode+Cell} as a target type.

Improved arrowhead rendering
~ arrowheads are rendered as a single path when possible and several arrowhead Shape definitions have been changed to implement mitered joints when HeadPen is set to a thick pen.
~ the point where end segments connect to arrowheads can be specified via the Shape.LinkSegmentInset property. Shape definitions from the Arrowheads class set it to suitable default value. This allows using transparent or semi-transparent brushes without seeing the link line drawn behind arrowheads.

Shape designer control
The ShapeDesigner component implements a vector-drawing canvas where Shape definitions can be created interactively. Call the ImportShape method to open a shape for editing. Call the ExportShape method to create a Shape with specified Id from current content of the designer canvas.
ShapeDesigner shows a palette with two kinds of elements: Primitives which when dropped on the canvas add a single curve or line segment, and Templates which when dropped on canvas add a closed path of several graphic primitives. It supports the following drag-and-drop operations:
~ dropping a primitive over existing element of a shape outline replaces the element.
~ dropping a primitive over the joint of two outline elements inserts the element between them.
~ dropping a primitive on an empty area of the canvas adds a decoration to the Shape.
~ dropping a template over the shape outline replaces all elements of the outline with ones from the template.
~ dropping a template on an empty area of the canvas adds a filled ShapeDecoration to the Shape.
~ dropping a template over a ShapeDecoration replaces its elements.

Export improvements
~ Visio2013Exporter now supports gradient brushes.
~ PdfExporter, SvgExporter and WmfExporter will now render the swimlane grid if PrintOptions.EnableLanes is set.
~ VisioExporter export speed has been improved greatly for large diagrams.

Dependency properties
The following properties have been converted to dependency properties:
~ CellFrameStyle, Shape, and CaptionHeight properties of TableNode.
~ CaptionHeight and Shape properties of ContainerNode and TreeViewNode.
~ MeasureUnit property of Diagram class.
~ arrowhead shape and size properties of DiagramLink class.
~ default-value properties of Diagram class.

Miscellaneous
~ The control raises DrawForeground event to let you render custom graphics on top of the diagram.
~ Set the LinkLabel.Brush property to fill the background of link labels.
~ TabbedDiagramView now activates the first tab after its document is loaded from a file.
~ TextPadding property is now applied by table cells.
~ Multiple-resize of rotated nodes fixed to apply same offsets in nodes' local coordinate system.
~ Anchoring.Keep option is now honored by OrthogonalRouter.
~ ZoomIn, ZoomOut, ZoomToRect, ZoomToFit methods added to DiagramView control.
~ Diagram.XmlOptions properties let you enable or disable style and theme serialization.
~ The magnifier tool now shows swimlanes and grid points.
~ The ChangeUnit method sets a new MeasureUnit and rescales the coordinates of diagram items to keep them the same size.

API changes
~ For consistence with MindFusion libraries for other platforms, BackBrush in default diagram style has been changed to white brush.
~ Type of LinkLabel.Margin property changed from double to Thickness.
~ ZoomControl can be now used with other MindFusion components and has been moved to MindFusion.Common.Wpf assembly in MindFusion.UI.Wpf namespace.

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://mindfusion.eu/WpfDiagTrial.zip

Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint