diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs index 8c2c55991..17ef64928 100644 --- a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml.cs @@ -10,6 +10,9 @@ namespace HandBrakeWPF.Views
{
using System.Windows;
+ using System.Windows.Input;
+
+ using HandBrakeWPF.ViewModels.Interfaces;
/// <summary>
/// Interaction logic for StaticPreviewView.xaml
@@ -23,5 +26,17 @@ namespace HandBrakeWPF.Views {
InitializeComponent();
}
+
+ private void PreviewImage_OnMouseWheel(object sender, MouseWheelEventArgs e)
+ {
+ if (e.Delta > 1)
+ {
+ ((IStaticPreviewViewModel)this.DataContext).NextPreview();
+ }
+ else
+ {
+ ((IStaticPreviewViewModel)this.DataContext).PreviousPreview();
+ }
+ }
}
}
|