Node not moving after changing Location property


#1

Hi,

Am also facing the same issue.
I am trying to update the Goxam diagram by changing the values in the Model that is bind to the diagram. Here is my code in the view model

GoXamModel.StartTransaction(“PropertyChanged”);

var node = GoXamModel.FindNodeByKey(“key1”);
var oldLocation = node.Location;
node.Location = new Point(10, 20);
GoXamModel.RaisePropertyChanged(“Location”, node, oldLocation, node.Location);

GoXamModel.CommitTransaction(“PropertyChanged”);

Here GoXamModel is an object of class

public class CustomModel : GraphLinksModel<NodeType, NodeKey, PortKey, LinkType>
{
}

When I debug my code after executing the CommitTransaction(“PropertyChanged”) the GoXamModel has all the updated values but they are not getting reflected in the UI.

Is there any method to Refresh the UI?

Thanks in advance


Diagram Not Refreshing
#2

Well, the first question is whether you have a Node.Location Binding to the “Location” property on your node data.

What is your Node DataTemplate and how is the node data defined?