From 65c7b2acbdb569970ae27205a6f6dd1de7564722 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 8 Jun 2017 19:26:52 +0100 Subject: [PATCH] WinGui: Set a app wide 15 second default for tooltips up from the standard 5 seconds. In some select cases it's overridden to 20. Seems like a more reasonable compromise vs being too short and requiring too many attempts to hover over controls. Fixes #718 --- win/CS/HandBrakeWPF/App.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index 39eb6c0bc..458d418f8 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -13,6 +13,7 @@ namespace HandBrakeWPF using System.IO; using System.Linq; using System.Windows; + using System.Windows.Controls; using Caliburn.Micro; @@ -36,6 +37,8 @@ namespace HandBrakeWPF Application.Current.Dispatcher.UnhandledException += this.Dispatcher_UnhandledException; AppDomain.CurrentDomain.UnhandledException += this.CurrentDomain_UnhandledException; + + ToolTipService.ShowDurationProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(12000)); } /// -- 2.40.0