Bookmarks

This sample demonstrates the Bookmark control. The Bookmark control allows users to save extents in a list and zoom to saved extents by clicking on them in the list. Saved extents are preserved on the user's machine even when the application is closed. The sample code shows that enabling this functionality only requires adding a simple XAML element

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.LocalBookmarks"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <LinearGradientBrush x:Key="PanelGradient" EndPoint="0.5,1" StartPoint="0.5,0">
                <LinearGradientBrush.RelativeTransform>
                    <TransformGroup>
                        <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                        <RotateTransform Angle="176" CenterY="0.5" CenterX="0.5"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </LinearGradientBrush.RelativeTransform>
                <GradientStop Color="#FF145787" Offset="0.16"/>
                <GradientStop Color="#FF3D7FAC" Offset="0.502"/>
                <GradientStop Color="#FF88C5EF" Offset="0.984"/>
            </LinearGradientBrush>
        </Grid.Resources>
        <esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" Background="#FFE3E3E3" MinimumResolution="2445.98490512499">
            <esri:ArcGISLocalTiledLayer ID="myBaseMap" Path="..\\Data\\TPKs\\Topographic.tpk"/>
        </esri:Map>
        <esri:Bookmark x:Name="MyBookmarks" Width="125" HorizontalAlignment="Right" VerticalAlignment="Top" 
             Margin="0,10,10,0" Background="{StaticResource PanelGradient}" BorderBrush="#FF92a8b3" Foreground="Black" 
             Map="{Binding ElementName=MyMap}"/>
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014