ArcGIS Runtime SDK for .NET Samples

Statistical query

Query statistics for features in the map
Loading

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.StatisticalQuery.StatisticalQuery"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border BorderBrush="Black" BorderThickness="1" Background="White"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition Height="150" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <CheckBox x:Name="OnlyInExtentCheckbox"
                          Grid.Row="0" Grid.Column="0"
                          Content="Cities in current extent"
                          HorizontalAlignment="Left" />
                <CheckBox x:Name="OnlyBigCitiesCheckbox"
                          Grid.Row="0" Grid.Column="1"
                          Content="Cities greater than 5M"
                          HorizontalAlignment="Right" />
                <Button x:Name="GetStatsButton"
                        Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                        Margin="0,5,0,5"
                        Content="Get Statistics"
                        Click="OnExecuteStatisticsQueryClicked" />
                <ListBox x:Name="StatResultsListBox"
                         Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" />
            </Grid>
        </Border>
    </Grid>

</UserControl>


In this topic
  1. Code