Hello,
we noticed several problems regarding link routes in GoXam for WPF with MVVM approach.
-
Assume I have 3 nodes on my diagram, and each has one input and one output port. I draw a link between output of node A to input of node B, and reshape the default route. All is good at this point. Then, I draw another link, between output of B to input of C. The first link jumps back to its default route.
-
In our application, we save diagram data to database. This data includes serialized link routes. Upon loading a saved diagram, the data is converted to actual diagram model data (deriving from GraphLinksModelLinkData<NodeKey, PortKey>). The information is correctly deserialized and assigned to Points property of this object, and subsequently, assigned to appropriate Link in custom CommandHandler’s event handler for Diagram.LayoutCompleted event. However, sometimes some of the links are drawn incorrectly, i. e. with their default routes. This only happens the first time GoXam is initialized in the application. Also, when the application window is maximized, the links seem to be drawn correctly.
-
There is another problem with the links, not directly connected to routing. Our links have custom templates, involving additional FrameworkElements on the LinkPanel. Those elements are bound to certain properties on the ViewModel of the link, which dynamically change during application runtime. As a result, the links are often rendered incorrectly - parts of the path disappear, while the other elements are displayed correctly, as seen in this video:
Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.