ArcGIS Runtime SDK for .NET Samples

WMS service catalog

WMS service layers
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.WPF.Samples.WmsServiceCatalog.WmsServiceCatalog"
    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/runtime/2013">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <TextBlock Text="Select WMS sublayers for display."
                           Grid.Row="0" Margin="5"
                           Foreground="Black" FontWeight="Bold" TextAlignment="Center" />
                <ListBox x:Name="MyDisplayList"
                         Grid.Row="1" Margin="5,0,5,0"
                         SelectionMode="Multiple"
                         SelectionChanged="MyDisplayList_SelectionChanged" />
                <TextBlock Text="Note: List above doesn't show layer hierarchy."
                           Foreground="Red" TextAlignment="Center"
                           Grid.Row="2" Margin="5" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code