Back to Devexpress

PropertyDefinitionBase.DescriptionContainerStyleSelector Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinitionbase-7e89f8bd.md

latest3.0 KB
Original Source

PropertyDefinitionBase.DescriptionContainerStyleSelector Property

Gets or sets an object that chooses a property description style based on custom logic. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public StyleSelector DescriptionContainerStyleSelector { get; set; }
vb
Public Property DescriptionContainerStyleSelector As StyleSelector

Property Value

TypeDescription
StyleSelector

A StyleSelector descendant that chooses a style based on custom logic.

|

Remarks

A style that defines the presentation of the property description is specified by the PropertyDefinitionBase.DescriptionContainerStyle property. If you have more than one style that can be used to render the property description, you can implement custom logic to choose the required style. To do this, derive from the StyleSelector class, implement the SelectStyle method that returns a style which meets the required condition, and assign it to the DescriptionContainerStyleSelector property.

If both the PropertyDefinitionBase.DescriptionContainerStyle and DescriptionContainerStyleSelector are specified, a property description is rendered using the style returned by the style selector. If the template selector returns null , the style specified by the PropertyDefinitionBase.DescriptionContainerStyle property is used.

To learn more, see Appearance Customization.

See Also

DescriptionContainerStyle

Choosing Templates Based on Custom Logic

PropertyDefinitionBase Class

PropertyDefinitionBase Members

DevExpress.Xpf.PropertyGrid Namespace