The TranslateToCenter and TranlateToCenterRelative methods are used to simulate the mouse panning.
To set a new center position you can simply call (this sample set the center to the center of the map - the CenterPositionUnits property must be set to Relative):
If you want to have animated panning to the new location you can use the SetZoom method:
To set a new center position you can simply call (this sample set the center to the center of the map - the CenterPositionUnits property must be set to Relative):
Code:
ZoomPanel1.CenterPosition = new Point(0.5, 0.5);If you want to have animated panning to the new location you can use the SetZoom method:
Code:
ZoomPanel1.SetZoom(new Point(0.5, 0.5));
Andrej Benedik

