<Window x:Class="ArcGISWpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009"> <Grid x:Name="LayoutRoot" > <Grid.Resources> <esri:SimpleFillSymbol x:Key="RedFillSymbol" Fill="Red" BorderBrush="Red" BorderThickness="1" /> </Grid.Resources> <!--Set the background color of the map control itself--> <esri:Map x:Name="MapControl" Background="Gray"> <esri:Map.Layers> <esri:GraphicsLayer> <esri:GraphicsLayer.Graphics> <esri:Graphic Symbol="{StaticResource RedFillSymbol}"> <esri:Polygon > <!--This could be bound to something else, this is straight from the SDK samples --> <esri:Polygon.Rings> <esri:PointCollection> <esri:MapPoint X="-10095589" Y="6616448" /> <esri:MapPoint X="-7797507" Y="6490526" /> <esri:MapPoint X="-8385145" Y="5147355" /> <esri:MapPoint X="-10641252" Y="5136861" /> <esri:MapPoint X="-10095589" Y="6616448" /> </esri:PointCollection> </esri:Polygon.Rings> </esri:Polygon> </esri:Graphic> </esri:GraphicsLayer.Graphics> </esri:GraphicsLayer> </esri:Map.Layers> </esri:Map> </Grid> </Window>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.