ArcGIS Runtime SDK for .NET Samples

Manage bookmarks

Manage bookmarks sample
Loading

Code

<UserControl 
    x:Class="ArcGISRuntime.UWP.Samples.ManageBookmarks.ManageBookmarks"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:esri="using:Esri.ArcGISRuntime"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />

        <Border 
        Background="White" BorderBrush="Black" BorderThickness="1"
        HorizontalAlignment="Right" VerticalAlignment="Top"
        Margin="30" Padding="20" Width="400">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Bookmarks:"
                        VerticalAlignment="Center"
                        Margin="5,0"/>
                <ComboBox x:Name="bookmarkChooser" 
                        DisplayMemberPath="Name" 
                        Width="200"
                        SelectionChanged="OnBookmarkChooserSelectionChanged" />
                <Button x:Name="ButtonAddBookmark"  
                    Margin="5,0" Padding="5"
                    Content="Add ..." 
                    Click="ButtonAddBookmark_Click"/>
            </StackPanel>
        </Border>
        
        <Border x:Name="BorderAddBookmark"
        Background="AntiqueWhite" BorderBrush="Black" BorderThickness="1"
        HorizontalAlignment="Right" VerticalAlignment="Top"
        Margin="0,105,30,0" Padding="10" 
        Width="400" Height="110">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Bookmark Name:"
                        Margin="0,0,7,0"/>
                    <TextBox x:Name="TextBoxBookmarkName" Text="" Width="200" />
                </StackPanel>
                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Right">
                    <Button x:Name="ButtonAddDone" 
                    Content="OK" 
                    Margin="0,10,10,0" Padding="5"
                    Width="50"
                    Click="ButtonAddDone_Click"/>
                    <Button x:Name="ButtonCancel" 
                    Content="Cancel" 
                    Width="60"
                    Margin="0,10,10,0" Padding="5"
                    Click="ButtonCancel_Click"/>
                </StackPanel>
            </StackPanel>
        </Border>
        
    </Grid>
</UserControl>


In this topic
  1. Code