Hi all, really excited about working with this product in my current project!
The simple answer to your question is that you can set go:Part.Movable=“False” and go:Part.Copyable=“False” on your Node1 and Node2 nodes.
What’s supposed to happen when the Diagram changes size?
What’s supposed to happen when the user zooms in or out?
You might need to implement DiagramPanel.ViewportBoundsChanged event handler that repositions Node1 and Node2.
Thanks, those are the exact questions I was pondering. Does the diagram support fixed sizing?
That behavior you see is called autoscrolling.
To disable that behavior, you can set DiagramPanel.AutoScrollRegion to a Thickness of zero. You can do that either in XAML with a custom Diagram.Template or in code in a Diagram.TemplateApplied event handler. The latter is needed because until the ControlTemplate has been expanded, the Diagram.Panel won’t exist yet.
Thanks again, very helpful information.