private void RefreshImageList() { ImageListItems.Clear(); for (var i = 0; i < models.Images.NumImages; ++i) { var item = new ImageItemViewModel(models.Images, i); ImageListItems.Add(item); } OnPropertyChanged(nameof(ImageListItems)); }
private void RefreshImageList() { SelectedImageListItem = null; ImageListItems.Clear(); for (var i = 0; i < models.Images.NumImages; ++i) { var item = new ImageListBoxItem(models.Images.GetFilename(i), models.Images.GetFileFormat(i), i, models.Images); ImageListItems.Add(item); } OnPropertyChanged(nameof(ImageListItems)); OnPropertyChanged(nameof(SelectedImageListItem)); }
private void RefreshImageList() { SelectedImageListItem = null; ImageListItems.Clear(); for (var i = 0; i < models.Images.NumImages; ++i) { var item = new ImageListBoxItem(models.Images.Images[i].Filename, models.Images.Images[i].OriginalFormat.ToString(), i, models.Images); ImageListItems.Add(item); } OnPropertyChanged(nameof(ImageListItems)); OnPropertyChanged(nameof(SelectedImageListItem)); }