Exemplo n.º 1
0
        internal static void PicGallery_Loaded(object sender, RoutedEventArgs e)
        {
            // Add events and set fields, when it's loaded.
            UC.GetPicGallery.Scroller.PreviewMouseWheel += GalleryNavigation.ScrollTo;
            UC.GetPicGallery.Scroller.ScrollChanged     += (s, x) => ConfigureWindows.GetMainWindow.Focus(); // Maintain window focus when scrolling manually
            UC.GetPicGallery.grid.MouseLeftButtonDown   += (s, x) => ConfigureWindows.GetMainWindow.Focus();
            UC.GetPicGallery.x2.MouseLeftButtonDown     += delegate { GalleryToggle.CloseHorizontalGallery(); };

            SetSize();
        }
Exemplo n.º 2
0
 internal static void LoadSelected()
 {
     if (index == FolderIndex)
     {
         GalleryToggle.CloseHorizontalGallery();
     }
     else
     {
         SetSelected(FolderIndex, false);
         GalleryClick.Click(index);
     }
 }