Skip to main content

Appearance Customization

The PropertyGridControl allows you to alter the layout and appearance of its elements.

Property Grid Elements That Support Templates

The following table lists template properties that define the appearance of the PropertyGridControl‘s visual elements.

Visual Element

Property

Description

PropertyDefinition

PropertyDefinitionBase.PropertyDefinitionTemplate

PropertyDefinitionBase.PropertyDefinitionTemplateSelector

PropertyGridControl.PropertyDefinitionTemplate

PropertyGridControl.PropertyDefinitionTemplateSelector

Defines the presentation of properties.

Description

PropertyDefinitionBase.DescriptionTemplate

PropertyDefinitionBase.DescriptionTemplateSelector

PropertyGridControl.DescriptionTemplate

PropertyGridControl.DescriptionTemplateSelector

Defines the presentation of property descriptions.

Content

PropertyDefinitionBase.ContentTemplate

PropertyDefinitionBase.ContentTemplateSelector

Defines the presentation of property content.

Header

PropertyDefinitionBase.HeaderTemplate

PropertyDefinitionBase.HeaderTemplateSelector

Defines the presentation of property headers.

Row

PropertyDefinitionBase.RowTemplate

Defines the presentation of property grid rows.

Cell

PropertyDefinition.CellTemplate

PropertyDefinition.CellTemplateSelector

Defines the presentation of property grid cells.

PropertyGrid Styles

The following table lists style properties that define the appearance of the PropertyGridControl‘s visual elements:

Visual Element

Property

Description

Grid Row

PropertyGridControl.RowStyle

PropertyGridControl.RowStyleSelector

Specifies the style applied to property grid rows.

Property

PropertyDefinitionBase.PropertyDefinitionStyle

PropertyGridControl.PropertyDefinitionStyle

Specifies the style applied to properties.

Property Description

PropertyDefinitionBase.DescriptionContainerStyle

PropertyGridControl.DescriptionContainerStyle

PropertyDefinitionBase.DescriptionContainerStyleSelector

PropertyGridControl.DescriptionContainerStyleSelector

Specifies the style applied to property descriptions.

See Also