Using binding to set a custom PartManager

Hello,

I’v created a custome part manager to update the link data points when edited. It works fine as long as I set the diagram.PartManager in the code behind.
If I set it using binding as below - it is not set properly.

<go:Diagram x:Uid=“myDiagram” x:FieldModifier=“public”
Grid.Row=“1”
x:Name=“myDiagram”
NodeTemplateDictionary="{StaticResource BlockNodeTemplateDictionary}"
LinkTemplate="{StaticResource BlockLinkTemplate}"
Padding=“10”
HorizontalContentAlignment=“Stretch”
VerticalContentAlignment=“Stretch”
GridSnapEnabled=“True”
Model="{Binding Path=Model}"
PartManager="{Binding Path=CustomPartManager}"/>

My DataContext has a CustomPartManager property - and it is accessed (looked with debugger).
What can be wrong using binding?

I like this approach as my view model is creating this.

Thx,
Didier

I’m guessing that the PartManager is not being set early enough.
Try putting that attribute before the Model= attribute.