ArcGIS Runtime SDK for .NET Samples

Convex hull

Create convex hull from points
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.ConvexHull.ConvexHull"
    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="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <StackPanel>
                <TextBlock Text="Tap on the map in at least three places, then click 'Create convex hull'."
                           TextWrapping="Wrap" FontWeight="SemiBold" />
                <Button x:Name="ConvexHullButton"
                        Content="Create convex hull"
                        Margin="0,5,0,0"
                        HorizontalAlignment="Stretch"
                        Click="ConvexHullButton_Click" />
                <Button x:Name="ResetButton"
                        Content="Reset"
                        Margin="0,5,0,0"
                        HorizontalAlignment="Stretch"
                        Click="ResetButton_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code