Edit this page

Overview

RadTabControl takes full advantage of the templates by providing a set of Template properties that allows you to control the appearance of the control. The DataTemplateSelector and the StyleSelector also come with the RadControls and allow you to choose the appropriate template on a custom logic basis.

There are two types of templates – ControlTemplate and DataTemplate. The ControlTemplate is used to define the default look of a control and allows the using of TemplateBinding. The DataTemplate is used when defining a template that should bind its controls to an object.

RadTabControl Templates and Template Selectors

  • Template property is of type ControlTemplate and is used to set the template of the control.

  • ItemTemplate property is of type DataTemplate and is used to set the template for the tab content.

  • ItemTemplateSelector property’s value must inherit from Telerik.Windows.Controls.DataTemplatesSelector and allows you to use custom logic to determine which template to apply to the content of the tab.

  • Top-, Right-, Bottom- and LeftTemplate are of type ControlTemplate. They set the default template of the RadTabControl and are used in combination with the TabStripPlacement property.

RadTabItem Templates and Template Selectors

  • Template property is of type ControlTemplate and is used to set the default template of the control.

  • ContentTemplate property is of type DataTemplate and is used to define a template for the content of the tab.

  • HeaderTemplate property is of type DataTemplate and is used to define a template for the header of the tab.

  • HeaderTemplateSelector property’s value must inherit from Telerik.Windows.Controls.DataTemplatesSelector and allows you to use custom logic to determine which template to apply to the header of the tab.

See Also