File: PointTypeDesignConverter.cs
Web Access
Project: src\src\Controls\src\Core.Design\Controls.Core.Design.csproj (Microsoft.Maui.Controls.DesignTools)
using System.ComponentModel;
using Controls.Core.Design;
 
namespace Microsoft.Maui.Controls.Design
{
	public class PointTypeDesignConverter : StringConverter
	{
		public override bool IsValid(ITypeDescriptorContext context, object value)
		{
			// MUST MATCH Point.TryParse
			int? count = DesignTypeConverterHelper.TryParseNumbers(value?.ToString(), ',', 2);
			return count == 2;
		}
	}
}