I am using the Entity Relationship as my base. I got the following exception in GoXam. I realize the problem is in my code but could you give me any idea what could be wrong or how I should debug this.?
Thanks
Rich
at Northwoods.GoXam.Layout.LayeredDigraphLayout.#Rd(Double px, Double py, Double qx, Double qy)
at Northwoods.GoXam.Layout.LayeredDigraphLayout.#Qd(List`1 routables)
at Northwoods.GoXam.Layout.LayeredDigraphLayout.AvoidOrthogonalOverlaps()
at Northwoods.GoXam.Layout.LayeredDigraphLayout.LayoutLinks()
at Northwoods.GoXam.Layout.LayeredDigraphLayout.#j.#W.#hy()
at Northwoods.GoXam.LayoutManager.#fy()
Try calling LayoutDiagram() only after the diagram is visible – in other words, only after the Diagram’s ControlTemplate has been applied.
Better yet, don’t call LayoutDiagram() at all. It will be called automatically as part of the initialization process. In GoXam 1.0 the initial layout is always performed; in GoXam 1.1 whether that layout is performed depends on the value of LayoutManager.Initial.
By default the value of LayoutManager.Initial in 1.1 is such that it does a layout only if there are any Nodes without a Location. This makes it much easier than in 1.0 to load an existing graph where all of the nodes are already positioned.