ArcGIS Runtime SDK for .NET Samples

Convex hull list

Create convex hulls from a list of geometry
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.ConvexHullList.ConvexHullList"
    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 TextWrapping="Wrap"
                           FontWeight="SemiBold">
                    Click 'Create convex hull' to create convex hull(s) from the polygon
                    graphics. If 'Union' is checked, the resulting output will
                    be one polygon that is the convex hull for the two input polygons.
                    Otherwise, the resulting output will have two convex
                    hull polygons - one for each of the two input polygons.
                </TextBlock>
                <CheckBox x:Name="ConvexHullListCheckBox"
                          Content="Union"
                          Margin="0,5,0,5"
                          IsChecked="True" />
                <Button x:Name="ConvexHullListButton"
                        Content="Create convex hull"
                        HorizontalAlignment="Stretch"
                        Margin="0,5,0,5"
                        Click="ConvexHullListButton_Click" />
                <Button x:Name="ResetButton"
                        Content="Reset"
                        HorizontalAlignment="Stretch"
                        Margin="0,5,0,5"
                        Click="ResetButton_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code