Select to view content in your preferred language

ESRI Template; Navigator; ZoomFullExtent;How2customize it or need IntialExtentButton.

914
3
09-13-2012 01:40 PM
Ravichandran_M_Kaushika
Regular Contributor
dear Readers,

I am using ESRI's silverlight template for visual studio 2010 sp1/ silverlight 5/ esri api 3.0.

<esri:Navigator element in MainPage is inheriting it from ESRI.ArcGIS.Client.Toolkit.Navigation class.  the esri mapping template (not viewer) has functions/buttons like ZoomFullExtent, ZoominButton and ZoomOutbutton.

How easy is it to change ZoomFullExtent to be set to initial extent set in mainpage.xaml.  NavigateStyle.XAML does not have .cs code behind file.

how easy is it to add another button to the same navigator object to set the map back to initial extent?

this is js example: http://forums.arcgis.com/threads/48318-Set-zoomToFullExtent-to-be-my-Initial-Extent = how to get it to silverlight?

thanks and regards
ravi.
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
0 Kudos
Ravichandran_M_Kaushika
Regular Contributor
Dominique,

good afternoon. thank you for responding to my post.  Sorry for the delay in responding to your post.

I am using ESRI Silverlight API 3.0 (sl 5) and I did not see a navigation.cs file at all.  there is a SLProject/Styles/NavigationStyle.XAML with no code behind.

the link above talks extensively about Navigation.cs - i did see the link making this post last week.

thanks for your time.

regards
Ravi.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I did not see a navigation.cs file at all. there is a SLProject/Styles/NavigationStyle.XAML with no code behind.

the link above talks extensively about Navigation.cs - i did see the link making this post last week.


Navigator.cs is not part of the core API but  is provided by some templates such as Minimal or Glass templates that subclass the Navigation toolkit control.
If you create a new map application from one of these templates you'll see the file under toolkit\navigator.
0 Kudos