Exemple #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;
     }
 }
 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;
     }
 }