41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
namespace VideoBrowser.ViewModels
|
|
{
|
|
using System.Windows.Media;
|
|
using VideoBrowser.Common;
|
|
using VideoBrowser.Extensions;
|
|
using VideoBrowser.Models;
|
|
using VideoBrowser.Resources;
|
|
|
|
/// <summary>
|
|
/// Defines the <see cref="VideoViewModel" />
|
|
/// </summary>
|
|
public class VideoViewModel : NotifyPropertyChanged
|
|
{
|
|
#region Fields
|
|
|
|
private double _downloadProgress;
|
|
|
|
private Video _video;
|
|
|
|
#endregion Fields
|
|
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// Gets or sets the DownloadProgress
|
|
/// </summary>
|
|
public double DownloadProgress { get => this._downloadProgress; set => this.Set(this.PropertyChangedHandler, ref this._downloadProgress, value); }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Icon
|
|
/// </summary>
|
|
public Geometry Icon { get; set; } = Icons.SearchVideo;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Video
|
|
/// </summary>
|
|
public Video Video { get => this._video; set => this.Set(this.PropertyChangedHandler, ref this._video, value); }
|
|
|
|
#endregion Properties
|
|
}
|
|
} |