ArcGIS Runtime SDK for .NET Samples

Display layer view state

Display layer view state
Loading

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: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>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Tiled layer:"
                           Grid.Row="0" Grid.Column="0"
                           Margin="0,5,0,0"
                           HorizontalAlignment="Right" />
                <TextBlock x:Name="TiledLayerStatus"
                           Grid.Row="0" Grid.Column="1"
                           Margin="5,5,0,0"
                           FontWeight="SemiBold" />
                <TextBlock Text="Image layer:"
                           Grid.Row="1" Grid.Column="0"
                           Margin="0,5,0,0"
                           HorizontalAlignment="Right" />
                <TextBlock x:Name="ImageLayerStatus"
                           Grid.Row="1" Grid.Column="1"
                           Margin="5,5,0,0"
                           FontWeight="SemiBold" />
                <TextBlock Text="Feature layer:"
                           Grid.Row="2" Grid.Column="0"
                           Margin="0,5,0,0"
                           HorizontalAlignment="Right" />
                <TextBlock x:Name="FeatureLayerStatus"
                           Grid.Row="2" Grid.Column="1"
                           Margin="5,5,0,0"
                           FontWeight="SemiBold" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code