diff options
author | sr55 <[email protected]> | 2016-07-25 20:38:00 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-07-25 20:38:00 +0100 |
commit | eb2b23f6cd63b0c96e818b16f73e83160ba6887c (patch) | |
tree | 20e720f6670a69617e9d3b1620d0bacdac32497f /win | |
parent | 96e2f705a48ed96db9172203ade1c6ab30937dde (diff) |
WinGui: Add a tooltip to display the preset description. Initial delay before appearing is 1.5 seconds to avoid annoying the user.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index a12de9e49..5d490110a 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -519,8 +519,23 @@ >
<ListBox.Resources>
+ <Style TargetType="ToolTip">
+ <Style.Resources>
+ <Style TargetType="ContentPresenter">
+ <Style.Resources>
+ <Style TargetType="TextBlock">
+ <Setter Property="TextWrapping" Value="Wrap" />
+ </Style>
+ </Style.Resources>
+ </Style>
+ </Style.Resources>
+ <Setter Property="MaxWidth" Value="300" />
+ </Style>
+
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="0,2,0,2" />
+ <Setter Property="ToolTip" Value="{Binding Description}" />
+ <Setter Property="ToolTipService.InitialShowDelay" Value="1500"/>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="Bold"/>
|