Skip to content

Commit

Permalink
Merge pull request #766 from koal44/fix/treeview-alignment
Browse files Browse the repository at this point in the history
Remove ContentAlignment bindings from TreeViewItem
  • Loading branch information
pomianowski authored Oct 9, 2023
2 parents 66929e2 + 0bd65eb commit ede2da1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Wpf.Ui/Controls/TreeView/TreeViewItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@
<SolidColorBrush Opacity="0.0" Color="{DynamicResource ControlFillColorDefault}" />
</Setter.Value>
</Setter>
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="Padding" Value="4" />
<Setter Property="FontSize" Value="{StaticResource TreeViewItemFontSize}" />
<Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
Expand Down Expand Up @@ -211,8 +209,6 @@
<SolidColorBrush Opacity="0.0" Color="{DynamicResource ControlFillColorDefault}" />
</Setter.Value>
</Setter>
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="Padding" Value="4" />
<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}" />
<Setter Property="OverridesDefaultStyle" Value="True" />
Expand Down

0 comments on commit ede2da1

Please sign in to comment.