List related features

This sample demonstrates how to query features related to an identified feature.

List related features

Instructions

Click on a feature to identify it. Related features will be listed in the window above the map.

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.ListRelatedFeatures.ListRelatedFeatures"
             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="http://schemas.esri.com/arcgis/runtime/2013"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ScrollViewer Grid.Row="0">
            <ListView x:Name="MyResultsView" />
        </ScrollViewer>
        <esri:MapView x:Name="MyMapView" Grid.Row="1" />
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code