コード例 #1
0
 public void OnRemoveButtonClick(ImagePickerItem item)
 {
     this.ImagesCollection.Remove(item.Image);
     this.items.Remove(item);
     this.itemsControl.ItemsSource = null;
     this.itemsControl.ItemsSource = this.items;
     if (this.ImagesPickMode == ImagesPickerMode.Single)
     {
         this.SelectedImage        = null;
         this.addButton.Click     += this.OnAddButtonClick;
         this.addButton.Visibility = System.Windows.Visibility.Visible;
     }
 }
コード例 #2
0
 public void OnRemoveButtonClick(ImagePickerItem item)
 {
     this.ImagesCollection.Remove(item.Image);
     this.items.Remove(item);
     this.itemsControl.ItemsSource = null;
     this.itemsControl.ItemsSource = this.items;
     if (this.ImagesPickMode == ImagesPickerMode.Single)
     {
         this.SelectedImage = null;
         this.addButton.Click += this.OnAddButtonClick;
         this.addButton.Visibility = System.Windows.Visibility.Visible;
     }
 }