Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
678 B

using System.Linq;
using StabilityMatrix.Avalonia.Models;
namespace StabilityMatrix.Avalonia.ViewModels.Inference;
public interface IImageGalleryComponent
{
ImageGalleryCardViewModel ImageGalleryCardViewModel { get; }
/// <summary>
/// Clears existing images and loads new ones
/// </summary>
public void LoadImagesToGallery(params ImageSource[] imageSources)
{
ImageGalleryCardViewModel.ImageSources.Clear();
foreach (var imageSource in imageSources)
{
ImageGalleryCardViewModel.ImageSources.Add(imageSource);
}
ImageGalleryCardViewModel.SelectedImage = imageSources.FirstOrDefault();
}
}