mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Pushing missing changes
This commit is contained in:
41
MediaBrowser.UI/ImageViewerWindow.xaml.cs
Normal file
41
MediaBrowser.UI/ImageViewerWindow.xaml.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using MediaBrowser.UI.Controls;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MediaBrowser.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ImageViewerWindow.xaml
|
||||
/// </summary>
|
||||
public partial class ImageViewerWindow : BaseModalWindow
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the images.
|
||||
/// </summary>
|
||||
/// <value>The images.</value>
|
||||
private IEnumerable<Tuple<Uri, string>> Images { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ImageViewerWindow" /> class.
|
||||
/// </summary>
|
||||
/// <param name="images">The images.</param>
|
||||
public ImageViewerWindow(IEnumerable<Tuple<Uri, string>> images)
|
||||
: base()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Images = images;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when [loaded].
|
||||
/// </summary>
|
||||
protected override void OnLoaded()
|
||||
{
|
||||
base.OnLoaded();
|
||||
|
||||
Image.Source = App.Instance.GetBitmapImage(Images.First().Item1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user