ArcGIS Runtime SDK for .NET Samples

Style WMS layers

Apply styles to a WMS layer
Loading

Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntime.Samples.StyleWmsLayer.StyleWmsLayer">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label
                Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                Text="Choose a style"
                HorizontalTextAlignment="Center" />
        <Button x:Name="FirstStyleButton"
                Grid.Row="1" Grid.Column="0"
                Text="Style 1"
                Clicked="FirstStyleButton_Clicked" />
        <Button x:Name="SecondStyleButton"
                Grid.Row="1" Grid.Column="1"
                Text="Style 2"
                Clicked="SecondStyleButton_Clicked" />
        <esriUI:MapView x:Name="MyMapView"
                        Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" />
    </Grid>
</ContentPage>


In this topic
  1. Code