Bookmarks Gallery


Purpose
This is a simple example of a gallery that lists the views in your map as bookmarks. This sample illustrates the following aspects of the API: 
  • A gallery add-in
  • Creating gallery items
  • Listening to events on the application
  • Navigating the map

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open a map containing several different views.
  2. Select the Add-Ins tab in the Ribbon.
  3. Click the Bookmarks Gallery dropdown and click one of the views to zoom to that view.


  4. Bookmarks Gallery items


Download the files for all languages
BookmarksGallery.cs Code to implement the Bookmarks Gallery class.
Download the C# files
BookmarksGallery.vb Code to implement the Bookmarks Gallery class.
Download the VB.NET files