public ThumbnailComponent(IDesktopWindow desktopWindow) { _resourceResolver = new ApplicationThemeResourceResolver(this.GetType().Assembly); _desktopWindow = desktopWindow; _dummyTree = new ImageSetTree(new ObservableList <IImageSet>(), null); _currentTree = _dummyTree; _thumbnailGallery = new ThumbnailGallery { NameAndDescriptionFormat = NameAndDescriptionFormat.VerboseNameNoDescription }; }
public ThumbnailComponent(IDesktopWindow desktopWindow) { _resourceResolver = new ApplicationThemeResourceResolver(this.GetType().Assembly); _desktopWindow = desktopWindow; _dummyTree = new ImageSetTree(new ObservableList <IImageSet>(), null); _currentTree = _dummyTree; _thumbnailGallery = new ThumbnailGallery { NameAndDescriptionFormat = NameAndDescriptionFormat.VerboseNameNoDescription }; _galleryItems = new BindingList <IGalleryItem>(); foreach (var galleryItem in _thumbnailGallery.GalleryItems) { _galleryItems.Add(galleryItem); } _thumbnailGallery.GalleryItems.ItemAdded += GalleryItemAdded; _thumbnailGallery.GalleryItems.ItemRemoved += GallerItemRemoved; _thumbnailGallery.GalleryItems.ItemChanging += GalleryItemChanging; _thumbnailGallery.GalleryItems.ItemChanged += GalleryItemChanged; }