I want to limit the zoom factor when executing FitToPage to avoid having big diagrams (one node i.e.). In an older version of the Diagram, the zoom factor didn't change when executing FitToPage but the latest version does it.
If I execute the following code, and if my diagram has only one node, the result current zoom goes i.e. to 7.
IGraphInfo graphinfo = pRoute.Info as IGraphInfo;
graphinfo.Commands.FitToPage.Execute(new FitToPageParameter()
{
Margin = new Thickness(15),
FitToPage = FitToPage.FitToPage
});
How can I execute FitToPage and at the same time limit the result to not exceed the Zoom Factor of 2. Is It possible?