ArcGIS Runtime SDK for .NET Samples

Cut geometry

Cut a polygon with a line
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.CutGeometry.CutGeometry"
    x:Name="_this"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ArcGISRuntime.UWP.Samples.CutGeometry"
    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="10"
            Padding="5"
            Width="375">
            <StackPanel>
                <TextBlock x:Name="CutInstructionsLabel" 
                           Text="Click the 'Cut' button to cut the polygon with the polyline and see the resulting parts."
                           TextWrapping="Wrap"
                           Margin="0,0,0,10"/>
                <Button x:Name="CutButton" 
                    Content="Cut"
                        HorizontalAlignment="Stretch"
                    Click="CutButton_Click"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code