xX_EASY GOD_Xx

xX_EASY GOD_Xx

  • NA
  • 2
  • 923

C# How to fix proeprty grid covnersion error?

Dec 30 2018 6:04 PM
Hey all,
 
my problem is: Im using a xeed toolkit proeprty grid and one of the properties if my own color struct so the color picker is embedded in the property grid. My struct is displayed as a color picker because of this attribute:
[type: Editor(typeof(Xceed.Wpf.Toolkit.PropertyGrid.Editors.ColorEditor),typeof(UITypeEditor))] 
The problem is whenever i set the color in the property grid ill get the error in the console:
TypeConvert cannot convert from System.Media.Color. I already have implicit conversion operators between them. So how could i fix this? :/
 
 

Answers (1)