using System;
using Windows.UI.Xaml.Media;
namespace StrixMusic.Shells.ZuneDesktop.Settings.Models
{
///
/// Represents a Background image
///
public class ZuneDesktopBackgroundImage
{
///
/// Initializes a new instance of the class.
///
public ZuneDesktopBackgroundImage()
{
IsNone = true;
Name = "None";
Path = null;
YAlignment = AlignmentY.Bottom;
Stretch = Stretch.Uniform;
}
///
/// Initializes a new instance of the class.
///
/// The name of the image.
/// The Y alignment of the image.
/// The stretch of the image.
public ZuneDesktopBackgroundImage(string name, AlignmentY alignment = AlignmentY.Bottom, Stretch stretch = Stretch.UniformToFill)
{
Path = new Uri("ms-appx:///Assets/Shells/Zune.Desktop.4.8/Backgrounds/" + name + ".png");
Name = name;
YAlignment = alignment;
Stretch = stretch;
IsNone = false;
}
///
/// The file path of the image.
///
public Uri? Path { get; set; }
///
/// The name of the image.
///
public string Name { get; set; }
///
/// The YAlignment of the image.
///
public AlignmentY YAlignment { get; set; }
///
/// The Stretch of the image.
///
public Stretch Stretch { get; set; }
///
/// Indicates if the ZuneBackgroundImage represents none.
///
public bool IsNone { get; set; }
}
}