I'm using xamNetworkNodes in a WPF project but the majority of examples I'm finding with granular details are not using MVVM.
(1) Using MVVM, any suggestions how I'd implement SelectedNodesCollectionChanged using MVVM? I was going to open a ticket, but figured others are probably in a similar situation and would benefit from a forum post
http://es.infragistics.com/help/topic/D691F6CC-A1FE-4276-B9E0-AE7CAF7D5619 but it's using code behind, which is simple, but doesn't leverage MVVM.
(2) What about handling other events in MVVM specific to xamNetworkNodes. Any forum posts would probably be helpful.
(3) LineStartCap, LineEndCap, LineCapSize are set at the xamNetworkNode level in XAML not on the individual node pairs. Is this a limit of the component? Diagrams often have nodes like ServerX -> Server Y as a 1 way data flow, and Server1<-->Server2 as a 2 way data flow and it needs to be configurable at the node pair level
(4) Are there any events to capture when a connecting line is selected, instead of a node? The goal is to let users remove a connection, and leave the node pair still displayed. Logical example: Server1->Server2-> Server3 ->Server1 then remove just the connecting line between Server3 & Server1 leaving Server1->Server2->Server3.
I think that's all of my questions for now.
Thanks & I hope I explained it well enough.
:)
HI,
In regards to your third issue. There is a way to set linecap for particular node below is a snippet:
xnn.Connections.ElementAt(0).LineStartCapStyle = this.LayoutRoot.Resources["startCap"] as Style;
xnn.Connections.ElementAt(0).LineStartCap = LineCap.Diamond;
these rows will set capline for first connection in networknode.
Also you can get the connection using particular node like is shown below: xnn.Nodes.ElementAt(0).Connections.ElementAt(0).LineStartCap = LineCap.Ellipse;
Sincerely,
Matt
Developer Support Engineer
As far as binding SelectedNodes Collection,
You can use behaviors.
Here a few links: http://es.infragistics.com/community/forums/p/67749/343013.aspx
http://es.infragistics.com/community/blogs/devin_rader/archive/2011/06/01/using-behaviors-to-synchronize-selected-items-of-infragistics-silverlight-controls-to-a-viewmodel.aspx
I am still looking into your 4th issue.
MattDeveloper Support Engineer