Select to view content in your preferred language

Porting from MAPPOINT to ESRI WPF

2963
1
12-24-2011 11:41 PM
Labels (1)
MIKEMENDEL
Emerging Contributor
Hello

Does someone has made Porting from MAPPOINT to ESRI WPF

Regards,
  Mike Mendel
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can look at the following SDK sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML and download the Interactive SDK http://help.arcgis.com/en/webapi/wpf/samples/start.htm to see WPF version.

I copied the following XAML from that sample. This map control has 2 layers: base layer and GraphicsLayer that contain a given map point.
   <esri:Map x:Name="MyMap" WrapAround="True" Background="White">
            <esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" 
                                             Url="http://services.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer"/>

                <esri:GraphicsLayer ID="MyGraphics" >
                    <esri:GraphicsLayer.Graphics >

                        <esri:Graphic Symbol="{StaticResource RedMarkerSymbol}" >
                            <esri:MapPoint X="-140.9" Y="63.391" />
                        </esri:Graphic>
</esri:GraphicsLayer.Graphics>
                </esri:GraphicsLayer>

        </esri:Map>

0 Kudos