UITypeEditor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ernest Morariu

    UITypeEditor

    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



  • Mevar81

    #2
    UITypeEditor

    Hello I've had your same problem. I' ve solved the
    problem using a Custom PropertyDescrip tor that wraps the
    object you want to edit. I made a simple class that
    inherits from PropertyDescrip tor 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[color=blue]
    >-----Original Message-----
    >Hi All!
    >
    >The MyEditor class derives from UITypeEditor and its[/color]
    constructor has some[color=blue]
    >parameters.
    >
    >I have to use EditorAttribute to associate MyEditor with[/color]
    a type or property.[color=blue]
    >
    >Question: it would be possibile to specify some values[/color]
    for the costructor's[color=blue]
    >parameters when I associate the MyEditor to a[/color]
    type/property through[color=blue]
    >EditorAttribut e ?
    >
    >Ernest
    >
    >
    >
    >.
    >[/color]

    Comment

    Working...