Note:
Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation.
To learn more about these changes please visit the announcement which can be found
HERE.
I'm trying to get the 'currently marked' node (that one with the bounding box on) to work with its UserData after the user clicked any. I've already tried the SelectionChanged - Event, similar to the 'WindowsApp-Demo'. But it fires, while the mouse is only hovering over a node (or edge), and I don't no to distinguish all wrong nodes from the one *marked*. Any help?
Hi Lev, thank you for your attention. Yes, you are right, and I managed it in the meantime using the MouseClick - Event and checking if the type of viewer.SelectedObject is edge. But there can be more than one node selected by holding shift or ctrl. There isn't a set of those nodes that I can enumerate, somewhat like "viewer.SelectedObjects" isn't it? Thanks
Hi Olaf, You can get these entites the following way foreach (var en in gviewer.Entities) if (en.MarkedForDragging && en is IViewerNode) { //got a selected node}
Thanks, Lev Lev Nachmanson
Marked As Answer byOlaf GrollmannWednesday, September 02, 2009 3:40 PM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.