Update textbox with the zoom percentage using Pan and Zoom Control

Applies to: Nevron Diagram for .NET

How to update textbox with the zoom percentage using Pan and Zoom Control?

You can display the Zoom Percentage in a textbox using the Zoom Level selected by the Pan and Zoom Control. So, if a user selects the + or - in the Pan and Zoom control, it would update the textbox with the selected zoom level percentage.

The drawing view raises the TransformationsChanged event, when the current scaling factors or the viewport origin of the view have changed. You can subscribe for this event and update a text box with the current setting of the ScaleX drawing view property (in case of zooming the ScaleX and ScaleY properties are equal – regular zooming).

Article ID: 33, Created On: 10/5/2010, Modified: 11/15/2010

Comments (1)

Simen Solvang

Perfect :)

3/12/2013 at 2:25 PM