Hi Blanca,
Sorry for the inconvenience caused and please ignore our previous update.
Please confirm whether you are using custom properties in PropertyGrid and change the Node’s color by using color palette in propertyGrid? If so, we suggest you to set the property type as “Color” instead of “string” in property convertor class. please refer to the below code example and sample.
Code example:
[C#]
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
Attribute[] attrs = new Attribute[]
{
new BrowsableAttribute(true)
};
// This code returns only the specified properties. It can be used to filter out
// properties that you do not wish to expose to in property grid.
PropertyDescriptor[] props = new PropertyDescriptor[4];
props[0] = TypeDescriptor.CreateProperty(typeof(CustomConnector), "Color", typeof(Color), attrs);
props[1] = TypeDescriptor.CreateProperty(typeof(CustomConnector), "LineWidth", typeof(float), attrs);
props[2] = TypeDescriptor.CreateProperty(typeof(CustomConnector), "Width", typeof(float), attrs);
props[3] = TypeDescriptor.CreateProperty(typeof(CustomConnector), "Height", typeof(float), attrs);
return new PropertyDescriptorCollection(props);
}
Sample:
Please confirm whether
Regards,
Naganathan K G