]> granicus.if.org Git - handbrake/commitdiff
WinGui: Couple of layout and control size tweaks on the main screen to accommodate...
authorsr55 <sr55.hb@outlook.com>
Tue, 12 Dec 2017 21:53:08 +0000 (21:53 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 12 Dec 2017 21:53:08 +0000 (21:53 +0000)
win/CS/HandBrakeWPF/Views/MainView.xaml
win/CS/HandBrakeWPF/Views/ShellView.xaml

index 2bb8a67461addb7945937ddd28dd2ba831433809..a783b126aec3b3506dec1b76f38a157f5acbf8a2 100644 (file)
                       VerticalAlignment="Stretch"\r
                       Header="Presets"\r
                       Margin="0,0,5,5"\r
+                      MaxWidth="270"\r
                       IsEnabled="{Binding HasSource, Converter={StaticResource booleanConverter}, ConverterParameter=false}"\r
                       Visibility="{Binding IsPresetPanelShowing, Converter={StaticResource boolToVisConverter}}">\r
 \r
                                         </Style.Triggers>\r
                                     </Style>\r
                                 </StackPanel.Resources>\r
-                                <TextBlock Text="{Binding Name}"/>\r
+                                <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" />\r
                             </StackPanel>\r
                         </HierarchicalDataTemplate>\r
 \r
 \r
                     <TreeView x:Name="presetListTree" HorizontalAlignment="Stretch" AutomationProperties.Name="Presets List" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Presets}"\r
                               VerticalAlignment="Stretch" BorderThickness="0,0,0,1" BorderBrush="LightGray"\r
-                              ItemsSource="{Binding PresetsCategories}"\r
+                              ItemsSource="{Binding PresetsCategories}" MaxWidth="265"\r
                               helpers:TreeViewHelper.TreeViewSelectedItem="{Binding Path=SelectedPreset, Mode=TwoWay}"\r
                               PreviewMouseRightButtonDown="PresetListTree_OnPreviewMouseRightButtonDown">\r
 \r
index 0f31986c44e9c59c9be373a96904cab7cf8b1aa9..e0455b3d30e52d8607f70f5fa57c85beff46780e 100644 (file)
@@ -8,7 +8,7 @@
         Title="{Data:Binding Path=MainViewModel.WindowTitle}"\r
         Width="1015"\r
         Height="675"\r
-        MinWidth="900"\r
+        MinWidth="1015"\r
         MinHeight="675"\r
         AllowDrop="True"\r
         SnapsToDevicePixels="True"\r