Click or drag to resize
Code Example - ArcGISDynamicMapServiceLayer

Shows creating an ArcGISDynamicMapServiceLayer in XAML and defining the serviceUri property for the layer.

Code Example
ArcGISDynamic Map Service Layer

This section contains selected code files from a Visual Studio project that emphasize specific ArcGIS Runtime SDK (Windows Desktop) features. For example: some code examples may accomplish the bulk of the work as a configuration property in the .xaml file and hence only the .xaml file will be shown in detail below. In other code examples, the .xaml is used to define the configuration of graphical elements for the application but the application logic is performed in the code behind, hence you may see both the .xaml and .cs/.vb files shown in detail below.

<Window x:Class="ArcGISDynamicMapServiceLayer.MainWindow"
             Height="600" Width="800">

        <!-- Add a MapView Control to the application. -->
            <!-- Add a Map. -->
                <!-- Add an ArcGISDynamicMapServiceLayer via XAML. -->
                <esri:ArcGISDynamicMapServiceLayer ID="World Time Zones" 

SPECIAL NOTE: The XAML displayed above comes from a C# project. If you are a VB.NET developer, you will need to modify the text for the x:Class namespace from "ArcGISDynamicMapServiceLayer.MainWindow" to be just "MainWindow".