HOW TO PROGRAMMATICALLY PAN TO SPECIFIC POINT
#2
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):
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
  


Messages In This Thread
RE: HOW TO PROGRAMMATICALLY PAN TO SPECIFIC POINT - by abenedik - 10-01-2019, 09:14 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)