Gallery.xaml.vb
' Copyright 2012 ESRI ' ' All rights reserved under the copyright laws of the United States ' and applicable international laws, treaties, and conventions. ' ' You may freely redistribute and use this sample code, with or ' without modification, provided you include the original copyright ' notice and use restrictions. ' ' See the use restrictions. ' Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Data Imports System.Runtime.InteropServices Partial Public Class Gallery Public mapGallery As MapCollection Public mapView As GlobeView Private Sub OnMapClick(ByVal sender As Object, ByVal e As RoutedEventArgs) mapView = New GlobeView() mapView.SelectedMap = TryCast(MapsListBox.SelectedItem, Map) mapView.Show() End Sub Private Sub Window_Closing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Application.Current.Shutdown() End Sub End Class