Extended Library for WPF and Silverlight | ComponentOne
PropertyGrid / Task-Based Help / Creating Custom Editors
In This Topic
    Creating Custom Editors
    In This Topic

    If the built-in editors do not fit your needs, you can easily create your own editors and use them with the C1PropertyGrid.

    The following simple steps are required:

    1. Create a class that implements the ITypeEditorControl interface.
    2. Add an instance of this class to the AvailableEditors collection on the C1PropertyGrid control.

    OR

    Specify this class as the editor for a specific property by adding an EditorAttribute to the property definition.

    The ITypeEditorControl interface contains the following members:

    For a complete implementation of a custom editor, please refer to the ControlExplorer samples installed with WPF Edition.