Basic Properties

ComponentOne PropertyGrid for WPF includes several properties that allow you to set the functionality of the control. Some of the more important properties are listed below. Note that you can see PropertyGrid for WPF Appearance Properties for more information about properties that control appearance.

The following properties let you customize the C1PropertyGrid control:

 

Property

Description

AutoGenerateMethods

Gets or sets a value indicating whether the C1PropertyGrid should try to get the methods of the SelectedObject using reflection.

AutoGenerateProperties

Gets or sets a value indicating whether the C1PropertyGrid should try to get the properties of the SelectedObject using reflection.

AvailableEditors

The list of currently available editors to use in the C1PropertyGrid. The default list includes editors for: bool, Color, Brush, ColorPalette, Enum, Numeric, String, Image and Uri values.

CategoryContainers

The list of category containers (if defined) created to show each category

CategoryContainerStyle

Gets or sets the Style applied to all the generated category containers.

DefaultCategoryName

The name used for the default category in which the properties are placed.

DisabledCuesVisibility

Gets a value indicating whether the disabled visuals of the control are visible.

EditorWidth

Gets or sets the width of generated editors for the SelectedObject's properties.

FocusCuesVisibility

Gets a value indicating whether the focus visuals of the control are visible.

LabelStyle

Gets or sets the Style applied to all the generated labels for the SelectedObject's properties.

LabelWidth

Gets or sets the width of generated labels for the SelectedObject's properties.

MethodAttributes

Gets or sets the list of method attributes used to configure the visualization of the SelectedObject's methods.

MethodBoxes

Gets the MethodBoxes generated to show the SelectedObject's methods on the C1PropertyGrid.

MethodsPanel

Gets or sets the template that defines the panel that controls the layout of methods.

PropertiesPanel

Gets or sets the template that defines the panel that controls the layout of properties.

PropertyAttributes

Gets or sets the list of property attributes used to configure the visualization of the SelectedObject's properties.

PropertyBoxes

Gets the PropertyBoxes generated to show the SelectedObject's properties on the C1PropertyGrid.

PropertySort

Gets or sets the type of sorting the C1PropertyGrid uses to display properties.

SelectedObject

Gets or sets the object for which the C1PropertyGrid displays properties. See The Selected Object for more information.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.