ArcGIS Runtime SDK for .NET Samples

Analyze hotspots

Analyze hotspots result

Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.AnalyzeHotspots.AnalyzeHotspots"
    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">
    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="FontWeight" Value="SemiBold" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Margin" Value="0,5,0,0" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Right" />
        </Style>
        <Style TargetType="DatePicker">
            <Setter Property="Margin" Value="5,5,0,0" />
        </Style>
    </UserControl.Resources>
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="385">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Select a date range for analysis."
                           Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                           Margin="0" HorizontalAlignment="Stretch"
                           TextWrapping="Wrap" TextAlignment="Center" />
                <TextBlock Text="From:"
                           Grid.Row="1" Grid.Column="0" />
                <DatePicker x:Name="FromDate"
                            Grid.Row="1" Grid.Column="1"
                            HorizontalAlignment="Stretch" />
                <TextBlock Text="To:"
                           Grid.Row="2" Grid.Column="0" />
                <DatePicker x:Name="ToDate"
                            Grid.Row="2" Grid.Column="1"
                            HorizontalAlignment="Stretch" />
                <Button Content="Run analysis"
                        Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
                        Margin="0,5,0,0" HorizontalAlignment="Stretch"
                        Click="OnAnalyzeHotspotsClicked" />
                <Grid x:Name="BusyOverlay"
                      Grid.Row="0" Grid.RowSpan="4" Grid.Column="0" Grid.ColumnSpan="2"
                      Margin="-20"
                      Visibility="Collapsed"
                      Background="#8C000000">
                    <Border HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Padding="15"
                            Background="#FFC6C4C4">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <ProgressBar x:Name="Progress"
                                         Grid.Row="0"
                                         IsIndeterminate="True"
                                         Height="20" />
                            <TextBlock Text="Executing analysis..."
                                       Grid.Row="1"
                                       HorizontalAlignment="Center"
                                       Margin="5" Height="20" />
                            <Button Content="Cancel"
                                    Grid.Row="2"
                                    HorizontalAlignment="Center"
                                    Click="OnCancelTaskClicked" />
                        </Grid>
                    </Border>
                </Grid>
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code