Skip to main content

DXTabControl.SelectedItemContentTemplate Property

Gets a template, used to represent the content of the selected tab item. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

#Declaration

public DataTemplate SelectedItemContentTemplate { get; protected set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object representing the template that defines the visual presentation of the selected item's content.

#Remarks

If the element of the Items collection, corresponding to the selected tab item, is not the DXTabItem type (e.g. a tab control is bound to a data source, or its Items collection has been manually filled with arbitrary items), the SelectedItemContentTemplate returns the ItemTemplate template. Otherwise, the tab item's DXTabItem.ContentTemplate template is returned.

A tab item can be selected by assigning its index to the DXTabControl.SelectedIndex property. You can also select a tab item by assigning it to the DXTabControl.SelectedItem property.

To define a template used to present the selected tab item's content, use the DXTabControl.SelectedItemContent property.

See Also