From: sr55 Date: Thu, 8 Jun 2017 18:26:52 +0000 (+0100) Subject: WinGui: Set a app wide 15 second default for tooltips up from the standard 5 seconds... X-Git-Tag: 1.1.0~537 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65c7b2acbdb569970ae27205a6f6dd1de7564722;p=handbrake 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 --- 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)); } ///