Skip to content

Commit 5330431

Browse files
[X|C] only use a single GridLengthTypeConverter
- fixes #29334
1 parent d398415 commit 5330431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/src/Primitives/GridLength.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public override object ConvertFrom(ITypeDescriptorContext? context, CultureInfo?
129129
=> value switch
130130
{
131131
double d => (GridLength)d,
132-
string strValue => strValue.Trim() switch
132+
string strValue => strValue.Trim().ToLowerInvariant() switch
133133
{
134134
"auto" => GridLength.Auto,
135135
"*" => new GridLength(1, GridUnitType.Star),

0 commit comments

Comments
 (0)