Skip to content

Commit aa1aa97

Browse files
authored
Fixes content alignment in TextBox (#10242)
1 parent 8a21696 commit aa1aa97

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/TextBox.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
3939
<Setter Property="HorizontalAlignment" Value="Stretch" />
4040
<Setter Property="VerticalAlignment" Value="Stretch" />
41-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
41+
<Setter Property="HorizontalContentAlignment" Value="Left" />
4242
<Setter Property="VerticalContentAlignment" Value="Top" />
4343
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
4444
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
@@ -251,7 +251,7 @@
251251
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
252252
<Setter Property="HorizontalAlignment" Value="Stretch" />
253253
<Setter Property="VerticalAlignment" Value="Stretch" />
254-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
254+
<Setter Property="HorizontalContentAlignment" Value="Left" />
255255
<Setter Property="VerticalContentAlignment" Value="Top" />
256256
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
257257
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,7 +4215,7 @@
42154215
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
42164216
<Setter Property="HorizontalAlignment" Value="Stretch" />
42174217
<Setter Property="VerticalAlignment" Value="Stretch" />
4218-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4218+
<Setter Property="HorizontalContentAlignment" Value="Left" />
42194219
<Setter Property="VerticalContentAlignment" Value="Top" />
42204220
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
42214221
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
@@ -4346,7 +4346,7 @@
43464346
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
43474347
<Setter Property="HorizontalAlignment" Value="Stretch" />
43484348
<Setter Property="VerticalAlignment" Value="Stretch" />
4349-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4349+
<Setter Property="HorizontalContentAlignment" Value="Left" />
43504350
<Setter Property="VerticalContentAlignment" Value="Top" />
43514351
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
43524352
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4196,7 +4196,7 @@
41964196
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
41974197
<Setter Property="HorizontalAlignment" Value="Stretch" />
41984198
<Setter Property="VerticalAlignment" Value="Stretch" />
4199-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4199+
<Setter Property="HorizontalContentAlignment" Value="Left" />
42004200
<Setter Property="VerticalContentAlignment" Value="Top" />
42014201
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
42024202
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
@@ -4327,7 +4327,7 @@
43274327
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
43284328
<Setter Property="HorizontalAlignment" Value="Stretch" />
43294329
<Setter Property="VerticalAlignment" Value="Stretch" />
4330-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4330+
<Setter Property="HorizontalContentAlignment" Value="Left" />
43314331
<Setter Property="VerticalContentAlignment" Value="Top" />
43324332
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
43334333
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4212,7 +4212,7 @@
42124212
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
42134213
<Setter Property="HorizontalAlignment" Value="Stretch" />
42144214
<Setter Property="VerticalAlignment" Value="Stretch" />
4215-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4215+
<Setter Property="HorizontalContentAlignment" Value="Left" />
42164216
<Setter Property="VerticalContentAlignment" Value="Top" />
42174217
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
42184218
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
@@ -4343,7 +4343,7 @@
43434343
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
43444344
<Setter Property="HorizontalAlignment" Value="Stretch" />
43454345
<Setter Property="VerticalAlignment" Value="Stretch" />
4346-
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
4346+
<Setter Property="HorizontalContentAlignment" Value="Left" />
43474347
<Setter Property="VerticalContentAlignment" Value="Top" />
43484348
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
43494349
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />

0 commit comments

Comments
 (0)