PageView.HeaderTemplateSelector Property
Gets or sets an object that chooses a template that realizes the current PageView‘s header.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v24.2.dll
NuGet Package: DevExpress.Wpf.Controls
Declaration
Property Value
Type | Description |
---|---|
DataTemplateSelector | A DataTemplateSelector object that chooses a template that realizes the current PageView‘s header. |
Remarks
PageView header, specified via the PageView.Header property, can be customized via Data Templates. To do so, assign a required Data Template to the PageView.HeaderTemplate property. You can also use templates to realize items and item headers via the ContentTemplate and ItemTemplate respectively.
To implement custom logic for choosing a template, you should create a System.Windows.Controls.DataTemplateSelector descendant, and override the System.Windows.Controls.DataTemplateSelector.SelectTemplate method. This method returns a data template for a specific object.
The HeaderTemplateSelector property supports the MVVM design pattern.