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.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object that visualizes the Tab Control’s content host. |
Remarks
When implementing the ContentHostTemplate data template, use the ContentHost element to specify where the content should be placed.
<Grid>
<Grid.Resources>
<DataTemplate x:Key="ContentHostTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"/>
<ColumnDefinition />
<ColumnDefinition Width="50"/>
</Grid.ColumnDefinitions>
<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" />
</Grid>
</DataTemplate>
</Grid.Resources>
<dx:DXTabControl ... ContentHostTemplate="{StaticResource ContentHostTemplate}"/>
</Grid>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContentHostTemplate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also