|
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:local="clr-namespace:ZipImageViewer" mc:Ignorable="d" |
7 | | - Width="800" Height="600" Icon="Resources/ZipImageViewer.ico" |
| 7 | + Width="850" Height="600" Icon="Resources/ZipImageViewer.ico" |
8 | 8 | Background="{StaticResource BackgroundBrush}" Foreground="{StaticResource ForegroundBrush}" WindowStartupLocation="CenterOwner" |
9 | 9 | Title="{StaticResource ttl_Settings}" UseLayoutRounding="True" Loaded="SettingsWin_Loaded" Closing="SettingsWin_Closing" PreviewKeyDown="SettingsWin_PreviewKeyDown"> |
10 | 10 | <ScrollViewer> |
|
43 | 43 | </local:PaddedGrid.Resources> |
44 | 44 |
|
45 | 45 | <Border Grid.Row="0"> |
46 | | - <DockPanel LastChildFill="False"> |
47 | | - <TextBlock DockPanel.Dock="Top" Style="{StaticResource HeaderTextStyle}" Text="{StaticResource ttl_ThumbnailSize}"/> |
48 | | - <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" VerticalAlignment="Top"> |
49 | | - <ContentControl> |
50 | | - <TextBox MinWidth="32" VerticalAlignment="Top" |
| 46 | + <Grid> |
| 47 | + <Grid.ColumnDefinitions> |
| 48 | + <ColumnDefinition/> |
| 49 | + <ColumnDefinition Width="Auto"/> |
| 50 | + <ColumnDefinition/> |
| 51 | + </Grid.ColumnDefinitions> |
| 52 | + <DockPanel LastChildFill="False" Grid.Column="0"> |
| 53 | + <TextBlock DockPanel.Dock="Top" Style="{StaticResource HeaderTextStyle}" Text="{StaticResource ttl_ThumbnailSize}"/> |
| 54 | + <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" VerticalAlignment="Top"> |
| 55 | + <ContentControl> |
| 56 | + <TextBox MinWidth="32" VerticalAlignment="Top" |
51 | 57 | Text="{Binding Source={x:Static local:App.Setting}, Path=ThumbnailSize.Item1}"/> |
52 | | - </ContentControl> |
53 | | - <TextBlock Text=" x " VerticalAlignment="Center"/> |
54 | | - <ContentControl> |
55 | | - <TextBox MinWidth="32" VerticalAlignment="Top" |
| 58 | + </ContentControl> |
| 59 | + <TextBlock Text=" x " VerticalAlignment="Center"/> |
| 60 | + <ContentControl> |
| 61 | + <TextBox MinWidth="32" VerticalAlignment="Top" |
56 | 62 | Text="{Binding Source={x:Static local:App.Setting}, Path=ThumbnailSize.Item2}"/> |
| 63 | + </ContentControl> |
| 64 | + </StackPanel> |
| 65 | + <Button DockPanel.Dock="Right" Content="{StaticResource ttl_ReloadView}" VerticalAlignment="Center" Click="Btn_Reload_Click"/> |
| 66 | + </DockPanel> |
| 67 | + <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="8 0"> |
| 68 | + <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" /> |
| 69 | + </StackPanel> |
| 70 | + <StackPanel Grid.Column="2"> |
| 71 | + <TextBlock Style="{StaticResource HeaderTextStyle}" Text="{StaticResource ttl_ThumbnailFormat}"/> |
| 72 | + <ContentControl> |
| 73 | + <ComboBox ItemsSource="{Binding Source={local:Enumeration {x:Type local:Setting+ThumbnailFormats}}}" |
| 74 | + SelectedValue="{Binding Source={x:Static local:App.Setting}, Path=ThumbnailFormat}" |
| 75 | + DisplayMemberPath="Description" SelectedValuePath="Value"/> |
57 | 76 | </ContentControl> |
58 | 77 | </StackPanel> |
59 | | - <Button DockPanel.Dock="Right" Content="{StaticResource ttl_ReloadView}" VerticalAlignment="Center" Click="Btn_Reload_Click"/> |
60 | | - </DockPanel> |
| 78 | + </Grid> |
61 | 79 | </Border> |
62 | 80 | <TextBlock Grid.Row="0" Grid.Column="1" Style="{StaticResource TipTextStyle}"> |
63 | 81 | <StaticResource ResourceKey="spn_ThumbSizeTip"/> |
|
140 | 158 | <Grid> |
141 | 159 | <Grid.ColumnDefinitions> |
142 | 160 | <ColumnDefinition/> |
143 | | - <ColumnDefinition Width="8"/> |
| 161 | + <ColumnDefinition Width="Auto"/> |
144 | 162 | <ColumnDefinition/> |
145 | 163 | </Grid.ColumnDefinitions> |
146 | 164 | <StackPanel Grid.Column="0"> |
|
151 | 169 | DisplayMemberPath="Description" SelectedValuePath="Value"/> |
152 | 170 | </ContentControl> |
153 | 171 | </StackPanel> |
| 172 | + <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="8 0"> |
| 173 | + <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" /> |
| 174 | + </StackPanel> |
154 | 175 | <StackPanel Grid.Column="2"> |
155 | 176 | <TextBlock Style="{StaticResource HeaderTextStyle}" Text="{StaticResource ttl_ViewerTransitionSpeed}"/> |
156 | 177 | <ContentControl> |
|
0 commit comments