ArcGIS Runtime SDK for .NET Samples

Query a map image sublayer

Query a map image sublayer
Loading

Code

<UserControl x:Class="ArcGISRuntime.UWP.Samples.MapImageSublayerQuery.MapImageSublayerQuery"
             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="Center" VerticalAlignment="Top"
                Margin="20" Width="240">
            <Grid Margin="5">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0"                           
                           Margin="5" 
                           HorizontalAlignment="Right" VerticalAlignment="Center" 
                           Text="[POP2000] > " />
                <TextBox x:Name="PopulationTextBox" 
                         Grid.Row="0" Grid.Column="1"                         
                         Margin="5" 
                         HorizontalAlignment="Stretch" VerticalAlignment="Center" HorizontalContentAlignment="Right"
                         Text="1810000" />
                <Button x:Name="QuerySublayers" 
                        Grid.Row="2" Grid.ColumnSpan="2"
                        HorizontalAlignment="Center" VerticalAlignment="Center"                        
                        Margin="10" Padding="10,5"
                        Content="Query in extent"
                        Click="QuerySublayers_Click"/>
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code