|
69 | 69 | <!-- Moved to Light, Dark and HC resource files -->
|
70 | 70 | <!-- <Thickness x:Key="TextControlBorderThemeThicknessFocused">2</Thickness> -->
|
71 | 71 | <system:Double x:Key="ContentControlFontSize">14</system:Double>
|
72 |
| - <system:Double x:Key="TextControlThemeMinHeight">24</system:Double> |
| 72 | + <system:Double x:Key="TextControlThemeMinHeight">32</system:Double> |
73 | 73 | <system:Double x:Key="TextControlThemeMinWidth">0</system:Double>
|
74 | 74 | <system:Double x:Key="TreeViewItemMultiSelectCheckBoxMinHeight">24</system:Double>
|
75 | 75 | <system:Double x:Key="TreeViewItemPresenterMargin">0</system:Double>
|
|
1480 | 1480 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
1481 | 1481 | <Setter Property="VerticalContentAlignment" Value="Top" />
|
1482 | 1482 | <Setter Property="Cursor" Value="IBeam" />
|
1483 |
| - <Setter Property="MinHeight" Value="{DynamicResource TextBoxThemeMinHeight}" /> |
| 1483 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
1484 | 1484 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
1485 | 1485 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
1486 | 1486 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
|
1793 | 1793 | <Setter Property="HorizontalAlignment" Value="Stretch" />
|
1794 | 1794 | <Setter Property="VerticalAlignment" Value="Center" />
|
1795 | 1795 | <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
1796 |
| - <Setter Property="VerticalContentAlignment" Value="Top" /> |
| 1796 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
1797 | 1797 | <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
|
1798 | 1798 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
1799 | 1799 | <Setter Property="Padding" Value="{DynamicResource ComboBoxPadding}" />
|
|
2552 | 2552 | <Setter Property="Background" Value="{DynamicResource DatePickerBackground}" />
|
2553 | 2553 | <Setter Property="BorderBrush" Value="{DynamicResource TextControlElevationBorderBrush}" />
|
2554 | 2554 | <Setter Property="BorderThickness" Value="{StaticResource DatePickerBorderThickness}" />
|
| 2555 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
2555 | 2556 | <Setter Property="HorizontalAlignment" Value="Stretch" />
|
2556 | 2557 | <Setter Property="VerticalAlignment" Value="Center" />
|
2557 | 2558 | <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
2605 | 2606 | <ColumnDefinition Width="*" />
|
2606 | 2607 | <ColumnDefinition Width="Auto" />
|
2607 | 2608 | </Grid.ColumnDefinitions>
|
2608 |
| - <Border x:Name="BorderElement" Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding Border.CornerRadius}" MinHeight="32"> |
| 2609 | + <Border x:Name="BorderElement" Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding Border.CornerRadius}" MinHeight="{TemplateBinding MinHeight}"> |
2609 | 2610 | </Border>
|
2610 | 2611 | <DatePickerTextBox x:Name="PART_TextBox" Padding="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" KeyboardNavigation.TabIndex="0" />
|
2611 | 2612 | <Button x:Name="PART_Button" Grid.Column="1" VerticalAlignment="Stretch" Style="{StaticResource CalendarButtonStyle}" KeyboardNavigation.TabIndex="1" MinWidth="30" />
|
|
4137 | 4138 | <!-- These rsources are redefined in .NET 10 -->
|
4138 | 4139 | <!-- <Thickness x:Key="PasswordBoxBorderThemeThickness">1,1,1,1</Thickness> -->
|
4139 | 4140 | <Thickness x:Key="PasswordBoxBorderThemeThickness">1</Thickness>
|
4140 |
| - <!-- Instead of PasswordBoxThemeMinHeight, we need to use TextControlThemeMinHeight, but modifying that right now |
4141 |
| - will affect the other styles as well. Once the remaining styles using it are fixed, will remove this resource --> |
4142 |
| - <sys:Double x:Key="PasswordBoxThemeMinHeight">32</sys:Double> |
4143 | 4141 | <ContextMenu x:Key="DefaultPasswordBoxContextMenu">
|
4144 | 4142 | <MenuItem Command="ApplicationCommands.Paste" />
|
4145 | 4143 | </ContextMenu>
|
|
4156 | 4154 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
4157 | 4155 | <Setter Property="VerticalContentAlignment" Value="Top" />
|
4158 | 4156 | <Setter Property="Cursor" Value="IBeam" />
|
4159 |
| - <Setter Property="MinHeight" Value="{DynamicResource PasswordBoxThemeMinHeight}" /> |
| 4157 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
4160 | 4158 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
4161 | 4159 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
4162 | 4160 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
|
4487 | 4485 | <Style BasedOn="{StaticResource DefaultResizeGripStyle}" TargetType="{x:Type ResizeGrip}" />
|
4488 | 4486 | <!-- Deprecated RichTextBox Resources ( Used in .NET 9 ) -->
|
4489 | 4487 | <Thickness x:Key="RichTextBoxAccentBorderThemeThickness">0,0,0,1</Thickness>
|
4490 |
| - <!-- Instead of RichTextBoxThemeMinHeight, we need to use TextControlThemeMinHeight, but modifying that right now |
4491 |
| - will affect the other styles as well. Once the remaining styles using it are fixed, will remove this resource --> |
4492 |
| - <system:Double x:Key="RichTextBoxThemeMinHeight">32</system:Double> |
4493 | 4488 | <Style x:Key="DefaultRichTextBoxStyle" TargetType="{x:Type RichTextBox}">
|
4494 | 4489 | <Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
4495 | 4490 | <Setter Property="ContextMenu" Value="{DynamicResource DefaultControlContextMenu}" />
|
|
4503 | 4498 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
4504 | 4499 | <Setter Property="VerticalContentAlignment" Value="Top" />
|
4505 | 4500 | <Setter Property="Cursor" Value="IBeam" />
|
4506 |
| - <Setter Property="MinHeight" Value="{DynamicResource RichTextBoxThemeMinHeight}" /> |
| 4501 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
4507 | 4502 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
4508 | 4503 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
4509 | 4504 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
|
5219 | 5214 | <!-- <Thickness x:Key="TextBoxClearButtonMargin">0,0,4,0</Thickness> -->
|
5220 | 5215 | <!-- <Thickness x:Key="TextBoxClearButtonPadding">0,0,0,0</Thickness> -->
|
5221 | 5216 | <system:Double x:Key="TextBoxIconFontSize">12</system:Double>
|
5222 |
| - <!-- Instead of TextBoxThemeMinHeight, we need to use TextControlThemeMinHeight, but modifying that right now |
5223 |
| - will affect the other styles as well. Once the remaining styles using it are fixed, will remove this resource --> |
5224 |
| - <system:Double x:Key="TextBoxThemeMinHeight">32</system:Double> |
5225 | 5217 | <Thickness x:Key="TextBoxClearButtonMargin">0,4,4,4</Thickness>
|
5226 | 5218 | <Thickness x:Key="TextBoxClearButtonPadding">0,0,-2,0</Thickness>
|
5227 | 5219 | <Style x:Key="DefaultTextBoxBaseStyle" TargetType="{x:Type TextBoxBase}">
|
|
5237 | 5229 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
5238 | 5230 | <Setter Property="VerticalContentAlignment" Value="Top" />
|
5239 | 5231 | <Setter Property="Cursor" Value="IBeam" />
|
5240 |
| - <Setter Property="MinHeight" Value="{DynamicResource TextBoxThemeMinHeight}" /> |
| 5232 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
5241 | 5233 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
5242 | 5234 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
5243 | 5235 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
|
5383 | 5375 | <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
|
5384 | 5376 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
5385 | 5377 | <Setter Property="VerticalContentAlignment" Value="Top" />
|
5386 |
| - <Setter Property="MinHeight" Value="{DynamicResource TextBoxThemeMinHeight}" /> |
| 5378 | + <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" /> |
5387 | 5379 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
5388 | 5380 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
5389 | 5381 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
|
0 commit comments