|
37 | 37 | </CollectionViewSource.SortDescriptions>
|
38 | 38 | </CollectionViewSource>
|
39 | 39 |
|
| 40 | + |
40 | 41 | <Style x:Key="SettingGrid" TargetType="ItemsControl">
|
41 | 42 | <Setter Property="Focusable" Value="False" />
|
42 | 43 | <Setter Property="Margin" Value="0" />
|
|
48 | 49 | <ColumnDefinition Width="auto" MaxWidth="60" MinWidth="20" />
|
49 | 50 | <ColumnDefinition Width="8*" />
|
50 | 51 | <ColumnDefinition Width="Auto" MaxWidth="550" MinWidth="40" />
|
51 |
| - |
52 | 52 | </Grid.ColumnDefinitions>
|
53 |
| - |
54 | 53 | </Grid>
|
55 |
| - |
56 | 54 | </ItemsPanelTemplate>
|
57 |
| - |
58 | 55 | </Setter.Value>
|
59 | 56 | </Setter>
|
60 | 57 | </Style>
|
|
101 | 98 | </Style>
|
102 | 99 |
|
103 | 100 | <Style TargetType="{x:Type TabItem}" x:Key="logo">
|
| 101 | + <!--#region Logo Style --> |
104 | 102 | <Setter Property="Margin" Value="0" />
|
105 | 103 | <Setter Property="HorizontalAlignment" Value="center" />
|
106 | 104 | <Setter Property="Background" Value="Transparent" />
|
|
152 | 150 | </ControlTemplate>
|
153 | 151 | </Setter.Value>
|
154 | 152 | </Setter>
|
| 153 | + <!--#endregion--> |
155 | 154 | </Style>
|
156 | 155 | <Style TargetType="{x:Type TabItem}">
|
157 | 156 | <Setter Property="Template">
|
|
161 | 160 | <Grid>
|
162 | 161 | <Grid>
|
163 | 162 | <Border
|
164 |
| - x:Name="Spacer" Width="Auto" Height="Auto" Padding="0 0 0 0" Margin="0 5 8 0" |
| 163 | + x:Name="Spacer" Width="Auto" Height="Auto" Padding="0 0 0 0" Margin="8 4 8 0" |
165 | 164 | BorderBrush="Transparent" BorderThickness="0">
|
166 | 165 | <Border x:Name="border" CornerRadius="5" Background="#f3f3f3">
|
167 | 166 | <ContentPresenter x:Name="ContentSite"
|
|
264 | 263 | <Setter Property="Margin" Value="0 0 8 4" />
|
265 | 264 | <Setter Property="BorderBrush" Value="#e5e5e5" />
|
266 | 265 | <Setter Property="MinWidth" Value="330"/>
|
267 |
| - <Setter Property="MaxWidth" Value="400"/> |
268 | 266 | <Setter Property="Height" Value="98"/>
|
269 | 267 | <!--#region Template for blue highlight win10-->
|
270 | 268 | <Setter Property="Template">
|
|
328 | 326 | <!--#endregion-->
|
329 | 327 | </Style>
|
330 | 328 |
|
| 329 | + <!-- For Tab Header responsive Width --> |
| 330 | + <Style TargetType="{x:Type TabControl}"> |
| 331 | + |
| 332 | + <Setter Property="Template"> |
| 333 | + <Setter.Value> |
| 334 | + <ControlTemplate TargetType="{x:Type TabControl}"> |
| 335 | + <Grid> |
| 336 | + <Grid.ColumnDefinitions> |
| 337 | + <ColumnDefinition Width="2.2*"/> |
| 338 | + <ColumnDefinition Width="7.8*"/> |
| 339 | + </Grid.ColumnDefinitions> |
| 340 | + <TabPanel |
| 341 | + Grid.Column="0" |
| 342 | + Panel.ZIndex="1" |
| 343 | + Margin="0,0,0,0" |
| 344 | + |
| 345 | + IsItemsHost="True" |
| 346 | + Background="#F6F6F6" /> |
| 347 | + <Border |
| 348 | + Grid.Column="1" |
| 349 | + BorderBrush="Black" |
| 350 | + BorderThickness="0" |
| 351 | + CornerRadius="0 |
| 352 | + " > |
| 353 | + <ContentPresenter ContentSource="SelectedContent" Grid.Column="1"/> |
| 354 | + </Border> |
| 355 | + </Grid> |
| 356 | + </ControlTemplate> |
| 357 | + </Setter.Value> |
| 358 | + </Setter> |
| 359 | + </Style> |
| 360 | + |
331 | 361 | </Window.Resources>
|
332 | 362 |
|
333 | 363 |
|
334 |
| - <TabControl Height="auto" SelectedIndex="1" TabStripPlacement="Left" Background="#f3f3f3"> |
| 364 | + <TabControl Height="auto" SelectedIndex="1" TabStripPlacement="Left" Background="#f3f3f3"> |
335 | 365 | <TabItem Style="{DynamicResource logo}">
|
336 | 366 | <TabItem.Header>
|
337 | 367 | <Grid Margin="0 18 0 0">
|
|
347 | 377 | </Grid>
|
348 | 378 | </TabItem.Header>
|
349 | 379 | </TabItem>
|
350 |
| - <TabItem Width="180"> |
| 380 | + <TabItem> <!-- LEFT TAB WIDTH --> |
351 | 381 | <TabItem.Header>
|
352 | 382 | <Grid>
|
353 | 383 | <Grid.ColumnDefinitions>
|
|
973 | 1003 | <Grid.RowDefinitions>
|
974 | 1004 | <RowDefinition Height="0" />
|
975 | 1005 | <RowDefinition Height="350" />
|
976 |
| - <RowDefinition Height="80" /> |
| 1006 | + <RowDefinition /> |
977 | 1007 | <RowDefinition />
|
978 | 1008 | <RowDefinition Height="*" />
|
979 | 1009 | </Grid.RowDefinitions>
|
|
1030 | 1060 | </StackPanel>
|
1031 | 1061 | </StackPanel>
|
1032 | 1062 |
|
| 1063 | + <StackPanel Grid.Row="2" VerticalAlignment="Top"> |
| 1064 | + <Border Style="{DynamicResource SettingGroupBox}" Margin="0 12 0 0"> |
| 1065 | + <ItemsControl Style="{StaticResource SettingGrid}"> |
| 1066 | + <StackPanel Style="{StaticResource TextPanel}"> |
| 1067 | + <TextBlock Text="{DynamicResource queryWindowShadowEffect}" |
| 1068 | + Style="{DynamicResource SettingTitleLabel}" /> |
| 1069 | + <TextBlock Text="{DynamicResource shadowEffectCPUUsage}" |
| 1070 | + Style="{DynamicResource SettingSubTitleLabel}" /> |
| 1071 | + </StackPanel> |
| 1072 | + <ui:ToggleSwitch IsOn="{Binding DropShadowEffect, Mode=TwoWay}" Width="80" |
| 1073 | + Grid.Column="2" Grid.Row="0" Margin="0 0 18 0" /> |
| 1074 | + <TextBlock FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20" |
| 1075 | + Grid.Column="0" VerticalAlignment="Center" Margin="24 0 16 0"> |
| 1076 | +  |
| 1077 | + </TextBlock> |
| 1078 | + </ItemsControl> |
| 1079 | + </Border> |
| 1080 | + </StackPanel> |
| 1081 | + |
1033 | 1082 | <StackPanel Grid.Row="3">
|
1034 | 1083 | <Border Style="{DynamicResource SettingGroupBox}" Margin="0 8 0 0" Padding="0"
|
1035 | 1084 | HorizontalAlignment="Stretch">
|
|
1094 | 1143 | </Border>
|
1095 | 1144 | </StackPanel>
|
1096 | 1145 |
|
1097 |
| - <StackPanel Grid.Row="2"> |
1098 |
| - <Border Style="{DynamicResource SettingGroupBox}" Margin="0 12 0 0"> |
1099 |
| - <ItemsControl Style="{StaticResource SettingGrid}"> |
1100 |
| - <StackPanel Style="{StaticResource TextPanel}"> |
1101 |
| - <TextBlock Text="{DynamicResource queryWindowShadowEffect}" |
1102 |
| - Style="{DynamicResource SettingTitleLabel}" /> |
1103 |
| - <TextBlock Text="{DynamicResource shadowEffectCPUUsage}" |
1104 |
| - Style="{DynamicResource SettingSubTitleLabel}" /> |
1105 |
| - </StackPanel> |
1106 |
| - <ui:ToggleSwitch IsOn="{Binding DropShadowEffect, Mode=TwoWay}" Width="80" |
1107 |
| - Grid.Column="2" Grid.Row="0" Margin="0 0 18 0" /> |
1108 |
| - <TextBlock FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20" |
1109 |
| - Grid.Column="0" VerticalAlignment="Center" Margin="24 0 16 0"> |
1110 |
| -  |
1111 |
| - </TextBlock> |
1112 |
| - </ItemsControl> |
1113 |
| - </Border> |
1114 |
| - </StackPanel> |
1115 | 1146 |
|
1116 | 1147 | <StackPanel Grid.Row="4" Margin="0 0 0 10" Orientation="Vertical">
|
1117 | 1148 |
|
|
0 commit comments