using MediaBrowser.UI.Controls; using System; using System.Collections.Generic; using System.Linq; namespace MediaBrowser.UI { /// /// Interaction logic for ImageViewerWindow.xaml /// public partial class ImageViewerWindow : BaseModalWindow { /// /// Gets or sets the images. /// /// The images. private IEnumerable> Images { get; set; } /// /// Initializes a new instance of the class. /// /// The images. public ImageViewerWindow(IEnumerable> images) : base() { InitializeComponent(); Images = images; } /// /// Called when [loaded]. /// protected override void OnLoaded() { base.OnLoaded(); Image.Source = App.Instance.GetBitmapImage(Images.First().Item1); } } }