Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Using MVVM pattern (Read 1952 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Using MVVM pattern
Jan 18th, 2012 at 9:48am
Print Post  
Hello.
Is there any way to use MVVM pattern and DataBinding for the collections of the nodes and links with Diagram object?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Using MVVM pattern
Reply #1 - Jan 19th, 2012 at 9:53am
Print Post  
Hi,

At this time it's possible only by implementing collection change listeners yourself as shown here:
http://mindfusion.eu/Forum/YaBB.pl?num=1306412889/1#1

For the next release we have ported the VirtualizingDiagram class from our Silverlight control, which provides built-in bindable NodesSource and LinksSource properties. You can find a pre-release build and a sample here:
https://mindfusion.eu/_beta/vdiagram.zip

VirtualizingDiagram is documented here:
http://www.mindfusion.eu/onlinehelp/diagramlite/index.htm?T_MindFusion_Diagrammi...

A difference with the Silverlight version is that WpfDiagram creates TemplatedNode objects by default, instead of ShapeNodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint