This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Eco/VideoBrowser/ViewModels/VideoViewModel.cs
2023-07-24 12:00:34 +02:00

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
}
}