summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-08-26 21:03:04 +0100
committersr55 <[email protected]>2017-08-26 21:03:39 +0100
commit4fea60efbcc3108d72dd909048f1586f99f71ca4 (patch)
treeb1bcad8687b19d4306a8f00b72c95b720574c39e /win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs
parentf70d349fd71a373c19568d579c2aa12d24e62c22 (diff)
WinGui: Various improvements and fixes to the new summary tab. Revert tab order change. #833
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs')
-rw-r--r--win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs b/win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs
index 744003698..5b0354576 100644
--- a/win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs
+++ b/win/CS/HandBrakeWPF/Views/SummaryView.xaml.cs
@@ -11,6 +11,7 @@ namespace HandBrakeWPF.Views
{
using System.Windows.Controls;
using System.Windows.Input;
+ using System.Windows.Media;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -42,5 +43,18 @@ namespace HandBrakeWPF.Views
((ISummaryViewModel)this.DataContext).SetPreviewControlVisibility(leftHalf, rightHalf);
}
}
+
+ private void PreviewImage_OnMouseLeave(object sender, MouseEventArgs e)
+ {
+ HitTestResult result = VisualTreeHelper.HitTest(this.previewImage, e.GetPosition(this.previewImage));
+
+ if (result != null && result.VisualHit.GetType() == typeof(Image))
+ {
+ e.Handled = true;
+ return;
+ }
+
+ ((ISummaryViewModel)this.DataContext).SetPreviewControlVisibility(false, false);
+ }
}
}