Hi.
Is there some way to select node of XamOrgChart by right mouse click? Or at least get node under mouse cursor?
Thanks for reply.
Hello Lukas,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the OrgChartNodeControl and added EventSetter for the PreviewMouseRightButtonDown event and in the handler I set the Node’s IsSelected Property to true. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thank, it is working. Just out of curiosity, is there way to get it work using MVVM pattern? I mean without code behind.
Here you can see how to handle events in MVVM way:
http://social.technet.microsoft.com/wiki/contents/articles/18199.event-handling-in-an-mvvm-wpf-application.aspx
Thank you, I know how to handle events in MVVM, but I couldn't get it to work. Just a bad day I think, because I solve in a instant today. Thank you for quick replies and solution.