ArcGIS Runtime SDK for .NET Samples

Buffer list

Planar and geodesic buffers

Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.BufferList.BufferList"
    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 Style="{StaticResource BorderStyle}"  Width="400">
            <StackPanel>
                <TextBlock x:Name="BufferInstructionsLabel"
                           TextWrapping="Wrap"
                           Margin="0,0,0,10">
                    Tap on the map to add points. Each point will use the buffer distance entered when it was created. The envelope shows the area where you can expect reasonable results for planar buffer operations with the North Central Texas State Plane spatial reference.
                </TextBlock>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Distance (miles):"
                               FontWeight="SemiBold"
                               VerticalAlignment="Center"
                               Margin="0,0,5,0" />
                    <TextBox x:Name="BufferDistanceMilesTextBox"
                             Text="10"
                             Width="30"
                             VerticalAlignment="Center" />
                    <CheckBox x:Name="UnionCheckBox"
                              Content="Union the buffer(s)"
                              IsChecked="True"
                              FontWeight="SemiBold"
                              VerticalAlignment="Center"
                              Margin="10,0,0,0" />
                </StackPanel>
                <StackPanel Orientation="Horizontal"
                            Margin="0,10,0,0">
                    <Button x:Name="BufferButton"
                            Width="174"
                            Content="Create buffer(s)"
                            Click="BufferButton_Click" />
                    <Button x:Name="ClearButton"
                            Width="174"
                            Content="Clear"
                            Margin="10,0,0,0"
                            Click="ClearButton_Click" />
                </StackPanel>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code