DXTabControl.ItemHeaderTemplateSelector Property
Gets or sets an object that chooses an item header template based on custom logic. This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
A template that defines the presentation of tab item headers is specified by the DXTabControl.ItemHeaderTemplate property. If you have more than one template that can be used to render tab item headers, you can implement custom logic to choose the required template. To do this, derive from the DataTemplateSelector class, implement the SelectTemplate method that returns a template which meets the required condition, and assign it to the ItemHeaderTemplateSelector property.
If both the DXTabControl.ItemHeaderTemplate and ItemHeaderTemplateSelector are specified, tab item headers are rendered using the template specified by the DXTabControl.ItemHeaderTemplate property. If this property is set to null, the template returned by the ItemHeaderTemplateSelector is used.
A template used to represent the visual appearance of tab item contents in the data bound mode is specified by the ItemTemplate property. To specify a template selector for tab item contents, use the DXTabControl.ItemTemplateSelector property.