// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // The Static Preview View Model // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.ViewModels { using System.Windows.Media.Imaging; using HandBrakeWPF.ViewModels.Interfaces; /// /// The Static Preview View Model /// public class StaticPreviewViewModel : ViewModelBase, IStaticPreviewViewModel { /// /// The preview image. /// private BitmapImage previewImage; /// /// Gets or sets the preview image. /// public BitmapImage PreviewImage { get { return this.previewImage; } set { if (Equals(value, this.previewImage)) { return; } this.previewImage = value; this.NotifyOfPropertyChange(() => this.PreviewImage); } } /// /// The preview frame. /// /// /// The image. /// public void PreviewFrame(BitmapImage image) { this.PreviewImage = image; } } }