diff options
author | sr55 <[email protected]> | 2017-09-10 20:39:26 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-09-10 20:39:26 +0100 |
commit | d0abd0c3f6cc67a74c2280e63c86d2aea2d84204 (patch) | |
tree | cd04342688163a9d24a1e703f4099cdfacbc8fec /win/CS/HandBrakeWPF/Views/MainView.xaml | |
parent | cdf5d4daa96040ece9ca4c7c2b69b15d47ec1269 (diff) |
WinGui: Add description tooltip to presets dropdown menu. Also change "User Presets" to "Custom Presets". Existing presets won't have their category changed.
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/MainView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index d9aed5c98..57f2cb518 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -333,10 +333,24 @@ <StackPanel Orientation="Horizontal" Margin="8,0,0,0">
<ComboBox ItemsSource="{Binding PresetsCategories}" SelectedItem="{Binding SelectedPresetCategory}" Width="150" DisplayMemberPath="Category" Margin="5,0,0,0" VerticalAlignment="Center" />
<ComboBox ItemsSource="{Binding CategoryPresets}" SelectedItem="{Binding SelectedPreset}" Width="250" Margin="10,0,0,0" VerticalAlignment="Center">
-
+ <ComboBox.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="400" />
+ </Style>
+ </ComboBox.Resources>
+
<ComboBox.ItemTemplate>
<DataTemplate>
- <StackPanel Orientation="Horizontal">
+ <StackPanel Orientation="Horizontal" ToolTip="{Binding Description}" ToolTipService.InitialShowDelay="1500">
<StackPanel.Resources>
<Style TargetType="TextBlock">
<Setter Property="FontStyle" Value="Normal" />
|