コード例 #1
0
 internal static void LoadSelected()
 {
     if (index == FolderIndex)
     {
         GalleryToggle.CloseHorizontalGallery();
     }
     else
     {
         SetSelected(FolderIndex, false);
         GalleryClick.Click(index);
     }
 }
コード例 #2
0
 internal static async Task Add(BitmapSource pic, int id)
 {
     await ConfigureWindows.GetMainWindow.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
     {
         var selected = id == ChangeImage.Navigation.FolderIndex;
         var item = new Views.UserControls.PicGalleryItem(pic, id, selected);
         item.MouseLeftButtonDown += delegate
         {
             GalleryClick.Click(id);
         };
         GetPicGallery.Container.Children.Add(item);
     }));
 }