DXTabControl.ContentHostTemplate Property

Gets or sets a template used to visualize the Tab Control’s content host.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v21.1.dll


public DataTemplate ContentHostTemplate { get; set; }

Property Value

Type Description

A DataTemplate object that visualizes the Tab Control’s content host.


When implementing the ContentHostTemplate data template, use the ContentHost element to specify where the content should be placed.

        <DataTemplate x:Key="ContentHostTemplate">
                    <ColumnDefinition Width="50"/>
                    <ColumnDefinition />
                    <ColumnDefinition  Width="50"/>
                <Border Grid.Column="0" Height="Auto" Background="Aqua" />
                <!-- dx:ContentHost element specifies where the content should be placed -->
                <dx:ContentHost Grid.Column="1" />
                <Border Grid.Column="2" Height="Auto" Background="Yellow" />
    <dx:DXTabControl ... ContentHostTemplate="{StaticResource ContentHostTemplate}"/>
See Also