Last Updated:
15 Feb 2022 16:31
by ADMIN
PropertyGrid: InvalidCastException thrown when PropertySetMode is Union or Intersection and changing property value
The following exception is thrown when changing the value of specific properties.
InvalidCastException: 'Object must implement IConvertible.'
This happens if the bound property is of a base type and the provided value is of a type that inherits the base type. For example, if you bind to a property of type Brush and you assign a value of type SolidColorBrush.