Hi Walter.
I faced the following problem.
Sometimes nodes get stuck together and the diagram looks like this:
But after I recreate Diagram.Model (MyDiagram.Model = new MyGraphLinksModel(…)) it relayouts correctly:
I failed to find certain circumstances of reproducing or discover any sensible reason why it may happen.
Here are some details might be useful to identify the problem:
- Model properties
public MyGraphLinksModel(…):base()
{
LinkCategoryPath = “LinkType”;
GroupNodePath = “Model.ParentStepId”;
NodeIsGroupPath = “Model.IsNotLeaf”;
NodeKeyPath = “Model.Id”;
NodeCategoryPath = “Model.LevelName”;
Modifiable = true;
}
2) Diagram properties
<go:Diagram Name=“diagram”
NodeTemplate="{StaticResource groupTemplate}"
GroupTemplate="{StaticResource groupTemplate}"
LinkTemplateDictionary="{StaticResource linkTemplateDictionary}"
AllowMove=“False”
AllowSelect=“True”
PanningTool="{x:Null}">
go:Diagram.DefaultTool
<Tool:ToolManager WheelBehavior=“ControlZooms,ScrollsVertically” MouseEnabled=“False” />
</go:Diagram.DefaultTool>
go:Diagram.PartManager
<Graph:RecipeStepsGraphPartManager />
</go:Diagram.PartManager>
go:Diagram.RelinkingTool
<Graph:GraphRelinkingTool />
</go:Diagram.RelinkingTool>
</go:Diagram>
- Group.Layout used for inner nodes is LayeredDigraphLayout {LayerSpacing=10, ColumnSpacing=10, ConditionFlags=All}
Node Template is quite long (~150 lines) so I omit it. If you consider it relevant I can provide it as well.
Could you please give me some advice on the reasons of such a strange behavior and the way to fix it?