Hi,
Recently I encountered an issue with my OrgChart application.
I have a Palette on left pane whose view model is OrgChartNodeData and Diagram on right whose view model is OrgChartNodeData. That means both have same view model but with different views. Plus I have created a CustomDraggingTool by extending your DraggingTool.
I drag a node(Source) from Palette and drop it onto a node(Target) in Diagram that’s in right pane. At UI level I can see that a new node(Child) has been added as Target’s child node. Logically the Child Node’s DataContext (OrgChartNodeData) has nothing to do with Source Node’s DataContext (OrgChartNodeData). But when I fire any command from Child node, it executes the Command defined in Source Node’s datacontext.
Do you have any idea what could be the possible reason. I am using TreeModel and everything is in Silverlight 4.
Thanks!!