- Welcome, Guest. Please Login or Register
  We are soon releasing MindFusion.JavaScript pack. Initial version includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are the beta version and live demo for anyone interested.  
Page Index Toggle Pages: 1 Send Topic Print  
Diagramming for WPF, V3.5
Read 1977 times

Forum Admin   Offline
YaBB Administrator
Posts: 527
Gender: male
Rock and Roll

Diagramming for WPF, V3.5
Jul 20th, 2017 at 10:30am
We have released version 3.5 of WPF Diagram control. It contains the following new features and improvements:

Non-blocking layout methods
All graph layout classes now contain an async ArrangeAsync method that runs layout calculations in a background task. This is only available in .NET 4.5 build of the diagram assemblies.

async void OnLayoutLayered(object sender, RoutedEventArgs e)
	var layout = new LayeredLayout();
	await layout.ArrangeAsync(diagram);

VirtualizingDiagram improvements
  • VirtualizingDiagram can contain nodes of different types now. Nodes returned for data items by InstantiateNode callback are stored in separate pools according to their type, and data items reuse node instances from respective pool. VisualCacheSize now specifies the size of per-type node pools.
  • If a data item has Container property set, the control associates its node with Container item's node. It Container item has been realized as a ContainerNode, the source node is added to it as a child. If Container realized node is of another type, the source node is attached as subordinate using AttachTo method. An alternative way to specify container items is via the ResolveContainer callback.

Overview improvements
  • The boolean FitAll has been replaced by ScaleMode enumeration property. It implements a third scaling mode where overview's scale stays fixed and ignores diagram's zoom level.
  • If AllowZoom is enabled, users can zoom the diagram by resizing the overview's viewport tracking rectangle.

  • The LinkTextEdited event is now raised when a LinkLabel has been edited. The edited label is specified via Label property of the event arguments object.
  • LinksPadding property added to LayeredLayout specifies how much space to leave between links when LinkType is set to Cascading.
  • GridAlignPoint property of DiagramNode class specifies which point of a node should snap to a point of the alignment grid.

Installer for the latest version can be downloaded here, or from the clients area on our site:

Updated assemblies are also available as MindFusion.Diagramming.Wpf NuGet package.

IP Logged    
Page Index Toggle Pages: 1 Send Topic Print