Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic VirtualizingDiagram ViewModels (Read 1148 times)
gabitzu6
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Aug 18th, 2017
VirtualizingDiagram ViewModels
Aug 18th, 2017 at 2:04pm
Print Post  
On the VirtualizingDiagram are the two DependencyProperties NodesSource and  LinksSource on which I can bind my Nodes and Links.

The question is what properties are supported?
How can my Node and Link object that I bind to this sources looks?
Are all the properties that are on DiagramNode / DiagramLink supported?

Thank you!
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: VirtualizingDiagram ViewModels
Reply #1 - Aug 18th, 2017 at 3:04pm
Print Post  
Hi,

Data items from NodeSource and LinkSource are set as DataContext of actual nodes and links created. For nodes you could add {Binding} expressions in their Xaml templates that bind to properties of the data item. Links aren't drawn using templates at this time, you could probably still add binding expressions from code-behind in LinkRealized event handler, or just set hard-coded appearance properties there.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint