Back to Devexpress

DXWindow.HeaderItemContainerStyleSelector Property

wpf-devexpress-dot-xpf-dot-core-dot-dxwindow-f378ad76.md

latest2.4 KB
Original Source

DXWindow.HeaderItemContainerStyleSelector Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public StyleSelector HeaderItemContainerStyleSelector { get; set; }
vb
Public Property HeaderItemContainerStyleSelector 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 header items is specified by the DXWindow.HeaderItemContainerStyle property. If you have more than one style that can be used to render property descriptions, you can implement custom logic to choose the required style. To do this, derive from the StyleSelector class, implement the SelectStyle method that returns the style which meets the required condition, and assign it to the HeaderItemContainerStyleSelector property.

If both the DXWindow.HeaderItemContainerStyle and HeaderItemContainerStyleSelector 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 DXWindow.HeaderItemContainerStyle property is used.

To learn more, see Styles and Templates.

See Also

DXWindow Class

DXWindow Members

DevExpress.Xpf.Core Namespace