ArcGIS Runtime SDK for .NET Samples

Change sublayer visibility

Change sublayer visibility
Loading

Code

<UserControl 
    x:Class="ArcGISRuntime.UWP.Samples.ChangeSublayerVisibility.ChangeSublayerVisibility"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:esri="using:Esri.ArcGISRuntime"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <CommandBar >
            <AppBarButton Name="Sublayers" Content="Sublayers" Click="OnSublayersButtonClicked"/>
        </CommandBar>
        <esriUI:MapView x:Name="MyMapView" Grid.Row="1"/>
    </Grid>
</UserControl>


In this topic
  1. Code