Controls vs. Editors

When should you create an editor and when should you create a control?

There is definitely a line between the two, and I think it lies in the functionality of a control. If you can use the same functionality across multiple instances of a property editor, than you should probably build a control. If the functionality is specific to a property, then you should probably create an editor for it.

A good example is an “Email To” button. You would want to create a button control, which allows you to place a button on your editor, but the editor would define that it is an “Email To” button and handle it’s events. The control itself just gives you the ability to place a button on the screen and give it a picture, which you could use everywhere if you wanted.

Long drawn out rant about editors and controls, but definitel

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>