Take the 2-minute tour ×

I know how to create an XAML GUI for a MapServer map . . .

<esri:Map x:Name="MyMap" Extent="-120,20,-100,40" >     <esri:Map.Layers>          <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"                Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" /> 

However, I need to know how to set up the syntax for using a map that I created from a Shapefile Feature Class that I have brought into ArcMap.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

After referring to the following page . . . Working with local data using SDK for WPF http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#//01700000002q000000

I was able to come up with the following lines that I used in my MainWindow.xaml code . . .

      <!--Local Feature Layer-->
        <esri:ArcGISLocalFeatureLayer ID="arcGISLocalFeatureLayer" 
        Path= "C:\Temp\MapWithMyData_101212.mpk" LayerName="MyLayer"/>
share|improve this answer
Please accept this answer so it doesn't get continually auto-bumped. –  blah238 Feb 9 '13 at 22:24
I cannot vote for my own answer. Thanks. –  Renee Cammarere Mar 7 '13 at 14:00
Click the grey check mark to the left of your answer to accept it (not the same as voting). –  blah238 Mar 7 '13 at 15:44
add comment

Your Answer


