ArcGIS Runtime SDK for .NET Samples

WMS service catalog

WMS service layers
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.WmsServiceCatalog.WmsServiceCatalog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <esriUI: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="auto" />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <TextBlock Text="Select a WMS layer from the list for display:" Grid.Row="0" />
                <ListBox x:Name="MyDisplayList" SelectionMode="Multiple" SelectionChanged="MyDisplayList_SelectionChanged_1" Grid.Row="1" />
                <TextBlock Foreground="Red" Text="Note: above list does not show layer hierarchy" Grid.Row="2" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code