]> granicus.if.org Git - handbrake/commitdiff
WinGui: Add a tooltip to display the preset description. Initial delay before appeari...
authorsr55 <sr55.hb@outlook.com>
Mon, 25 Jul 2016 19:38:00 +0000 (20:38 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 25 Jul 2016 19:38:00 +0000 (20:38 +0100)
win/CS/HandBrakeWPF/Views/MainView.xaml

index a12de9e49f01be948ff1af7214269d12418f9dba..5d490110ac041af5394aa5e7894bc648172f5b5a 100644 (file)
                             >\r
                         <ListBox.Resources>\r
 \r
+                            <Style TargetType="ToolTip">\r
+                                <Style.Resources>\r
+                                    <Style TargetType="ContentPresenter">\r
+                                        <Style.Resources>\r
+                                            <Style TargetType="TextBlock">\r
+                                                <Setter Property="TextWrapping" Value="Wrap" />\r
+                                            </Style>\r
+                                        </Style.Resources>\r
+                                    </Style>\r
+                                </Style.Resources>\r
+                                <Setter Property="MaxWidth" Value="300" />\r
+                            </Style>\r
+\r
                             <Style TargetType="ListBoxItem">\r
                                 <Setter Property="Padding" Value="0,2,0,2" />\r
+                                <Setter Property="ToolTip" Value="{Binding Description}" />\r
+                                <Setter Property="ToolTipService.InitialShowDelay" Value="1500"/>\r
                                 <Style.Triggers>\r
                                     <Trigger Property="IsSelected" Value="True">\r
                                         <Setter Property="FontWeight" Value="Bold"/>\r