Hello
I am working with a complicated scenario with propertygrid
I am binding a chart's background property to viewmodel Background property (type of Color)
This field in propertygrid is using my custom control, and I tried to add this line in my view model class:
[Editor("Background", typeof(ColorEditor))]
Then in window load event add this editor to my propertygrid, I get my editor in this field regardless if I add above line or not
CustomEditor colorEditor = new CustomEditor() { HasPropertyType = true, PropertyType = typeof(Color), Editor = new ColorEditor() };
then I do get my editor in this field.
The problem is, in A-Z mode this works fine, but in Grouping mode the custom editors are not working - looks like the value of the property is not bound, string value is empty (ChartTitle field) and my custom combobox drop down selected value is empty - I do get my color combo box though)
Please advise any solution to this, thanks a lot.