P
pavcioch
Hi.
I have a nasty problem with propertygrid and custom UITypeEditor.
Briefly:
When the class to be put into propertygrid (name it pclass) and my
custom UITypeEditor are defined in the same assembly, everything works
just fine.
When the pclass is using editor defined in another assembly, the
Editor attribute is ignored (the default editor is displayed).
The property to be "designed" is of type defined in the same assembly
as custom uitypeeditor.
Here is some examplatory pseudocode in C#:
-- assembly1: references assembly2
public class pclass
{
[Editor(typeof(CustomUIEditor),typeof(System.Drawing.Design.UITypeEditor))
public CustomCollection Teams{get{...} set{...}}
}
-- assembly2:
public class CustomUIEditor:UITypeEditor
{
..... //implementation
}
public class CustomCollection
{
..... //implementation
}
Both assembly1 and assembly2 as used by some winforms app utilizing
propertygrid control.
As simple as that, but doesn't work. Any ideas ?
Thanks.
I have a nasty problem with propertygrid and custom UITypeEditor.
Briefly:
When the class to be put into propertygrid (name it pclass) and my
custom UITypeEditor are defined in the same assembly, everything works
just fine.
When the pclass is using editor defined in another assembly, the
Editor attribute is ignored (the default editor is displayed).
The property to be "designed" is of type defined in the same assembly
as custom uitypeeditor.
Here is some examplatory pseudocode in C#:
-- assembly1: references assembly2
public class pclass
{
[Editor(typeof(CustomUIEditor),typeof(System.Drawing.Design.UITypeEditor))
public CustomCollection Teams{get{...} set{...}}
}
-- assembly2:
public class CustomUIEditor:UITypeEditor
{
..... //implementation
}
public class CustomCollection
{
..... //implementation
}
Both assembly1 and assembly2 as used by some winforms app utilizing
propertygrid control.
As simple as that, but doesn't work. Any ideas ?
Thanks.