/// <summary> /// Keyboard event handler for palette... need to assign it to each thumbnail too, I guess? /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void RemoveSelectedItems() { if (mySelectedThumbnail != null && mySelectedThumbnail.CanRemove) { if (mySelectedThumbnail.CanRemove) { Bitmaps.RemoveItem(mySelectedThumbnail.ThumbnailOf); } } if (bHasMultiselection) { foreach (var thumb in GetMultiselectedThumbnails()) { if (thumb.CanRemove) { Bitmaps.RemoveItem(thumb.ThumbnailOf); } } } }