Select to view content in your preferred language

Programatically pan left or right

616
3
06-07-2010 11:08 PM
xariaD
by
Occasional Contributor
How to attach pan left, pan right capabilities to custom image navigator?
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
Depending on what you are doing, you could:
1) Customize the navigation control provided in the toolkit. In Blend:
[INDENT]- insert the navigation control[/INDENT]
[INDENT]- right click on it[/INDENT]
[INDENT]- choose 'Edit Template'  and then 'Edit a copy'[/INDENT]
[INDENT]- change the look as you need.[/INDENT]

2) Programmatically in C# use  the ZoomTo method on the map.

3) In XAML, use the PanToAction (example : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#NavigationActions)
0 Kudos
OrenGal
Regular Contributor
use PanTo() of the map
Oren
0 Kudos
DominiqueBroux
Esri Frequent Contributor
You are right Oren, I made a mistake. The method to pan is 'PanTo' and not 'ZoomTo'.
Sorry about that.
0 Kudos