setschs
1
Hello, <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
At the moment we are evaluating your GoXam framework for our company. I am really convinced of your product to fulfill our requirements.
There is just one problem, which I can’t handle.
Is it possible to select a specific node directly after the diagram is loaded?
(without an user/mouse events)
I’m working with the Navigator Demo and want to show the "Nodes Reachable" highlighting for a specific node, which is identified be an URL parameter.
It's no problem to select the specific node but I am not able to make a "default" selection.
Selecting nodes by an additional/binded list still works fine.
//-------------------------------------------------------------
//-------------------------------------------------------------
//-------------------------------------------------------------
InitializeComponent();
... load from xml
... build the model (load nodes / links)
... do some layouting
//-------------------------------------------------------------
myDiagram.Select();
.IsSelected = true;
// myDiagram.SelectedNode = ; // raises an error
myDiagram.SelectedPart = ;
//-------------------------------------------------------------
//-------------------------------------------------------------
//-------------------------------------------------------------
Thanks!
Best regards
Stephan
walter
2
You probably want to do the selection of the Node in a Diagram.InitialLayoutCompleted event handler.
If you try to do it earlier, the Nodes might not yet have been created from the model data.
setschs
3
Perfect! Now it works.
Thank you for your fast response.
Best regards
Stephan