Skip to content

Commit

Permalink
WinGui: Add a tooltip to display the preset description. Initial dela…
Browse files Browse the repository at this point in the history
…y before appearing is 1.5 seconds to avoid annoying the user.
  • Loading branch information
sr55 committed Jul 25, 2016
1 parent 96e2f70 commit eb2b23f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions win/CS/HandBrakeWPF/Views/MainView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit eb2b23f

Please sign in to comment.