From: sr55 <sr55.hb@outlook.com> Date: Tue, 12 Dec 2017 21:53:08 +0000 (+0000) Subject: WinGui: Couple of layout and control size tweaks on the main screen to accommodate... X-Git-Tag: 1.1.0~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d37c6cbf04d2708790f5bdf722bba3f9f3ca605a;p=handbrake WinGui: Couple of layout and control size tweaks on the main screen to accommodate the legacy preset panel. --- diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 2bb8a6746..a783b126a 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -512,6 +512,7 @@ VerticalAlignment="Stretch" Header="Presets" Margin="0,0,5,5" + MaxWidth="270" IsEnabled="{Binding HasSource, Converter={StaticResource booleanConverter}, ConverterParameter=false}" Visibility="{Binding IsPresetPanelShowing, Converter={StaticResource boolToVisConverter}}"> @@ -541,7 +542,7 @@ </Style.Triggers> </Style> </StackPanel.Resources> - <TextBlock Text="{Binding Name}"/> + <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" /> </StackPanel> </HierarchicalDataTemplate> @@ -554,7 +555,7 @@ <TreeView x:Name="presetListTree" HorizontalAlignment="Stretch" AutomationProperties.Name="Presets List" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Presets}" VerticalAlignment="Stretch" BorderThickness="0,0,0,1" BorderBrush="LightGray" - ItemsSource="{Binding PresetsCategories}" + ItemsSource="{Binding PresetsCategories}" MaxWidth="265" helpers:TreeViewHelper.TreeViewSelectedItem="{Binding Path=SelectedPreset, Mode=TwoWay}" PreviewMouseRightButtonDown="PresetListTree_OnPreviewMouseRightButtonDown"> diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml b/win/CS/HandBrakeWPF/Views/ShellView.xaml index 0f31986c4..e0455b3d3 100644 --- a/win/CS/HandBrakeWPF/Views/ShellView.xaml +++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml @@ -8,7 +8,7 @@ Title="{Data:Binding Path=MainViewModel.WindowTitle}" Width="1015" Height="675" - MinWidth="900" + MinWidth="1015" MinHeight="675" AllowDrop="True" SnapsToDevicePixels="True"