WMS service catalog

This sample demonstrates how to enable and disable the display of layers discovered from a WMS service.

WMS service layers

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>
                <Label Grid.Row="0">Select a WMS layer from the list for display:</Label>
                <ListBox Grid.Row="1" x:Name="MyDisplayList" SelectionMode="Multiple" SelectionChanged="MyDisplayList_SelectionChanged" />
                <Label Foreground="Red" Grid.Row="2">Note: above list does not show layer hierarchy</Label>
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code