The Diagram.TemplateApplied event occurs after the ControlTemplate has been expanded. Normally it’s used to be able to access the Diagram.Panel and some other things that are created and initialized during thiat process.
However the initial nodes and links of the diagram haven’t been created and initialized and laid-out and rendered yet. Normally you could do something at that time by implementing a Diagram.InitialLayoutCompleted event handler.
But if you are just trying to set the DiagramPanel.Position, it’s easiest to just set the Diagram.InitialPosition property. There are other Diagram.Initial… properties that are also used to initialize the DiagramPanel properties.