Extended Library for WPF and Silverlight | ComponentOne
PropertyGrid / PropertyGrid Features / Using Built-in Editors
In This Topic
    Using Built-in Editors
    In This Topic

    The C1PropertyGrid control includes several built-in editors. If you do not specify an editor, C1PropertyGrid will display each member with a default editor. You can also specify editors, and if needed, create your own custom editor. The C1PropertyGrid.AvailableEditors property controls what editors are available in the C1PropertyGrid control.

    Because the C1PropertyGrid control does not have built-in editors for complex objects, complex object will be shown in the default editor (StringEditor) and the string representation (tostring()) of the complex object will be shown. If you need to show complex objects, you may want to create a custom editor. For more information about creating a custom editor, see Creating Custom Editors.

    Built-in editors include:

     

    Editor

    Description

    BoolEditor

    Default editor used by C1PropertyGrid to edit bool values.

    BrushEditor

    Default editor used by C1PropertyGrid to edit Brush values.

    ColorEditor

    Default editor used by C1PropertyGrid to edit color values.

    ColorPaletteEditor

    Default editor used by C1PropertyGrid to edit color palette values.

    EnumEditor

    Default editor used by C1PropertyGrid to edit Enum values.

    ImageSourceEditor

    Default editor used by C1PropertyGrid to edit image values.

    NumericEditor

    Default editor used by C1PropertyGrid to edit numeric values.

    StringEditor

    Default editor used by C1PropertyGrid to edit String values.

    UriEditor

    Default editor used by C1PropertyGrid to edit Uri values.

     

    For example, color values are editable at run time in the following image: