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


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Diagramming for WPF, V3.5
Jul 20th, 2017 at 9:30am
Print Post  
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.

Code
Select All
async void OnLayoutLayered(object sender, RoutedEventArgs e)
{
	var layout = new LayeredLayout();
	await layout.ArrangeAsync(diagram);
	diagram.ZoomToFit();
} 



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.

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

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

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