Display layer view state

This sample demonstrates how to get view status for layers in a map.

Display layer view state

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.DisplayLayerViewState.DisplayLayerViewState"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <esriUI:MapView x:Name="MyMapView"/>
        <Border
            Background="White" BorderBrush="Black" BorderThickness="1"
            HorizontalAlignment="Left" VerticalAlignment="Top"
            Margin="30" Padding="20" Width="250">
            <StackPanel Orientation="Vertical">
                <TextBlock x:Name="StatusLabel_TiledLayer" Text=""/>
                <TextBlock x:Name="StatusLabel_ImageLayer" Text=""/>
                <TextBlock x:Name="StatusLabel_FeatureLayer" Text=""/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code