Skip to content

Commit a1b12b3

Browse files
Fixed ListView content alignment regression (#9953)
Co-authored-by: Dipesh Kumar <[email protected]>
1 parent 6d62453 commit a1b12b3

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/TabControl.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@
212212
<Setter Property="BorderBrush" Value="Transparent" />
213213
<Setter Property="HorizontalAlignment" Value="Stretch" />
214214
<Setter Property="VerticalAlignment" Value="Stretch" />
215-
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
216-
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
215+
<Setter Property="VerticalContentAlignment" Value="Stretch" />
216+
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
217217
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
218218
<Setter Property="KeyboardNavigation.IsTabStop" Value="True" />
219219
<Setter Property="Focusable" Value="True" />

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
@@ -4037,8 +4037,8 @@
40374037
<Setter Property="BorderBrush" Value="Transparent" />
40384038
<Setter Property="HorizontalAlignment" Value="Stretch" />
40394039
<Setter Property="VerticalAlignment" Value="Stretch" />
4040-
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4041-
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4040+
<Setter Property="VerticalContentAlignment" Value="Stretch" />
4041+
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
40424042
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
40434043
<Setter Property="KeyboardNavigation.IsTabStop" Value="True" />
40444044
<Setter Property="Focusable" Value="True" />

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
@@ -4015,8 +4015,8 @@
40154015
<Setter Property="BorderBrush" Value="Transparent" />
40164016
<Setter Property="HorizontalAlignment" Value="Stretch" />
40174017
<Setter Property="VerticalAlignment" Value="Stretch" />
4018-
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4019-
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4018+
<Setter Property="VerticalContentAlignment" Value="Stretch" />
4019+
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
40204020
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
40214021
<Setter Property="KeyboardNavigation.IsTabStop" Value="True" />
40224022
<Setter Property="Focusable" Value="True" />

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
@@ -4035,8 +4035,8 @@
40354035
<Setter Property="BorderBrush" Value="Transparent" />
40364036
<Setter Property="HorizontalAlignment" Value="Stretch" />
40374037
<Setter Property="VerticalAlignment" Value="Stretch" />
4038-
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4039-
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
4038+
<Setter Property="VerticalContentAlignment" Value="Stretch" />
4039+
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
40404040
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
40414041
<Setter Property="KeyboardNavigation.IsTabStop" Value="True" />
40424042
<Setter Property="Focusable" Value="True" />

0 commit comments

Comments
 (0)