Hi,
I have two nodes in GoXam (WPF) diagram and a link is connected to these two nodes as shown below. The link has a link label symbol which is made from graphic canvas. In xaml the link label is part of link template and not a separate node.
I have a ZoomtoFit command where, I fit the graphics to the screen. ZoomToFit code is as shown below.
public void ZoomToFit()
{
Panel.Stretch = StretchPolicy.Uniform;
this.Panel.Stretch = StretchPolicy.Unstretched;
}
Not When I call this zoomtofit command the graphics does not fit to the screen correctly. I suspect that the link label is not considered during this operation. If I place any existing node at the same place where link label is placed the diagram zooms properly.
Is there any workaround for this so that I can display the link label properly when zoomtofit is called? Or is my zoomtofit code proper?