Select to view content in your preferred language

Getting started with the interactive SDK

526
1
12-08-2010 07:23 AM
AndrewHayden1
Regular Contributor
I'm having issues getting started with the silverlight API and the interactive SDK.  I figured I'd start with 2 very simple samples ("ArcGIS Dynamic Layer" and "Show Mouse Coordinates") and once I see how they work together, building from this seems like it should be simple enough.  Trouble is, I can't get these samples to work together.  I'm wondering, does the XAML from both samples need to be incorporated in the MainPage.xaml?  Does the VB code behind for both samples need to be incorporated in the Mainpage.xaml.vb?  Any chance of getting a "dummies guide" to putting these 2 samples together in a project (for example....step 1) add esri.arcgis.client reference step 2) put map control here step 3) put xaml here step 4) put vb there, etc...) or maybe a simple vb solution showing both samples together?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
How about try to get one sample working first and then merge the other sample with it? 🙂

Get ShowMouseCoordinates working first and then replace the type of layer within it, with the ArcGISDynamicMapServiceLayer.

When learning samples, it is important to know what to get from each sample:
In ShowMouseCoordinates, the essential parts are:
* Map that contains a layer
* Map that subscribes to MouseMove event
* MouseMove implementation where screen point are transformed to map points
In ArcGIS Dynamic Layer, the essential part is:
* Map that contains a specific type of layer

Knowing these should guide you what to put in XAML and what to put in code-behind. You will be able to adjust the code in such a way that each sample does not lose the function they serve.
0 Kudos