UITypeEditor

  • Thread starter Thread starter Ernest Morariu
  • Start date Start date
E

Ernest Morariu

Hi All!

The MyEditor class derives from UITypeEditor and its constructor has some
parameters.

I have to use EditorAttribute to associate MyEditor with a type or property.

Question: it would be possibile to specify some values for the costructor's
parameters when I associate the MyEditor to a type/property through
EditorAttribute ?

Ernest
 
Hello I've had your same problem. I' ve solved the
problem using a Custom PropertyDescriptor that wraps the
object you want to edit. I made a simple class that
inherits from PropertyDescriptor and override the
GetEditor method.In this method I create a new Custom
Editor passing the argument it need to be created.Hope
this help you
 
Back
Top