Skip to content

Commit 440297f

Browse files
yinzhifangNaBian
authored andcommitted
fix:修复DataGrid控件报错导致渲染卡顿的问题: Cannot get 'CornerRadius' value (type 'CornerRadius') from '' (type 'DataGridCell'). BindingExpression:Path=(0); DataItem='DataGridCell' (Name=''); target element is 'Border' (Name=''); target property is 'CornerRadius' (type 'CornerRadius') InvalidOperationException:'System.InvalidOperationException: “8,0,8,0”不是属性“CornerRadius”的有效值
1 parent fb2784f commit 440297f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Shared/HandyControl_Shared/Themes/Styles/Base/DataGridBaseStyle.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:hc="clr-namespace:HandyControl.Controls"
44
xmlns:system="clr-namespace:System;assembly=mscorlib">
@@ -36,7 +36,7 @@
3636
<Setter Property="VerticalContentAlignment" Value="Center"/>
3737
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
3838
<Setter Property="Padding" Value="{StaticResource DefaultControlPadding}"/>
39-
<Setter Property="hc:BorderElement.CornerRadius" Value="{StaticResource DefaultInputPadding}"/>
39+
<Setter Property="hc:BorderElement.CornerRadius" Value="{StaticResource DefaultCornerRadius}"/>
4040
<Setter Property="Template">
4141
<Setter.Value>
4242
<ControlTemplate TargetType="DataGridCell">

src/Shared/HandyControl_Shared/Themes/Theme.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
This code was generated by a tool.
33

44
Changes to this file may cause incorrect behavior and will be lost if
@@ -11943,7 +11943,7 @@
1194311943
<Setter Property="VerticalContentAlignment" Value="Center" />
1194411944
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
1194511945
<Setter Property="Padding" Value="{StaticResource DefaultControlPadding}" />
11946-
<Setter Property="hc:BorderElement.CornerRadius" Value="{StaticResource DefaultInputPadding}" />
11946+
<Setter Property="hc:BorderElement.CornerRadius" Value="{StaticResource DefaultCornerRadius}" />
1194711947
<Setter Property="Template">
1194811948
<Setter.Value>
1194911949
<ControlTemplate TargetType="DataGridCell">
@@ -14552,4 +14552,4 @@
1455214552
</Style>
1455314553
<Style BasedOn="{StaticResource RangeSliderBaseStyle}" TargetType="hc:RangeSlider" />
1455414554
<Style BasedOn="{StaticResource SliderBaseStyle}" TargetType="Slider" />
14555-
</ResourceDictionary>
14555+
</ResourceDictionary>

0 commit comments

Comments
 (0)