ArcGIS Runtime SDK for .NET Samples

Query map image layer tables

Find related features for a selected row in a table
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.MapImageLayerTables.MapImageLayerTables">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="160"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Label Grid.Row="0"
                   Text="Select a row to see the related feature:"/>
            <ListView x:Name="CommentsListBox"
                      Grid.Row="1"
                      HeightRequest="140"
                      ItemSelected="CommentsListBox_SelectionChanged">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <TextCell Text="{Binding  Attributes[comments]}"/>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </Grid>
        <esriUI:MapView x:Name="MyMapView"
                        Grid.Row="1"/>
    </Grid>
</ContentPage>


In this topic
  1. Code