Example #1
0
 /// <summary>
 /// The <see cref="MediaViewer.ItemDisplayed"/> event handler.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">The <see cref="ItemDisplayedEventArgs"/> instance containing the event data.</param>
 private void MediaViewerOnItemDisplayed(object sender, ItemDisplayedEventArgs e)
 {
     this.SetAppBarMode(AppBarMode.Review);
     this.SetToCameraRollArrowVisibility(true);
 }
        private void MediaViewer_ItemDisplayed(object sender, ItemDisplayedEventArgs e)
        {
            LoadOrUnloadCamera();

            if (this.MediaViewer.Items[(int)e.ItemIndex] is MediaLibraryThumbnailedImage)
            {
                SetAppBarMode(AppBarModeEnum.MediaLibraryPhoto);
            }
            else if (this.MediaViewer.Items[(int)e.ItemIndex] is LocalFolderThumbnailedImage)
            {
                SetAppBarMode(AppBarModeEnum.IsolatedStoragePhoto);
            }
            else
            {
                SetAppBarMode(AppBarModeEnum.Empty);
            }
        }