鉴于.NET10-WPF官方接受了Grid的ColumnDefinition和RowDefinition字符串写法: https://github.com/dotnet/wpf/commits/b63ac07fbc7a58fde79f14a842b7816ebfb7e96d/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinitionCollectionConverter.cs ColumnDefinitionCollectionConverter: https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinitionCollectionConverter.cs RowDefinitionCollectionConverter: https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RowDefinitionCollectionConverter.cs 可以同步实现的代码。