性能问题优化

This commit is contained in:
艾竹
2023-02-12 15:46:44 +08:00
parent da2d8cd9b3
commit 1c03c0f055
10 changed files with 66 additions and 55 deletions

View File

@@ -25,19 +25,13 @@
<Style x:Key="gridHorizontalLineStyle" TargetType="Line" BasedOn="{StaticResource gridLineStyle}">
<Setter Property="X2" Value="1" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="Grid.ColumnSpan"
Value="{Binding
Path=ColumnDefinitions.Count,
RelativeSource={RelativeSource AncestorType=Grid}}"/>
<Setter Property="Grid.ColumnSpan" Value="2"/>
</Style>
<Style x:Key="gridVerticalLineStyle" TargetType="Line" BasedOn="{StaticResource gridLineStyle}">
<Setter Property="Y2" Value="1" />
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="Grid.RowSpan"
Value="{Binding
Path=RowDefinitions.Count,
RelativeSource={RelativeSource AncestorType=Grid}}"/>
<Setter Property="Grid.RowSpan" Value="1000"/>
</Style>
</Border.Resources>