Group: Forum Members
Last Active: 8 Years Ago
Posts: 3,
Visits: 14
|
I have implemented a pan and zoom control in my project and set the MasterView property to my view. The behavior I am seeing is that the birds eye view is being displayed in the PanAndZoom control, but the ZoomIn, ZoomOut, ZoomSlider, and ViewportBand have no effect in changing the Zoom level. I have looked at the PanAndZoom example in the VisualInterfaceComponents, and do not see any additional properties that need to be set. I have attached a sample program that I created that shows this behavior. Thanks, Todd Lichtas
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Todd, The problem with your code is that you set the view layout to Fit, which means that the drawing document is aways zoomed in or out in order to fit/fill the whole area of the drawing view. In this case the proper zoom factor is automatically determined by Nevron Diagram for .NET and that is why the PanAndZoom control does not affect it. If you set the zoom factor to normal it should work fine: NDrawingView1.ViewLayout = ViewLayout.Normal
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 8 Years Ago
Posts: 3,
Visits: 14
|
That did it. Thanks...Todd
|