New to Telerik UI for WPFStart a free 30-day trial

Represents a tab within a RadRibbonView, providing a container for ribbon groups and functionalities related to tab management. The RadRibbonTab control supports visual states for contextual and non-contextual tabs, as well as selection states. It allows for customization of the header visibility, background appearance when minimized, and association with contextual groups. This class also implements theming capabilities and provides hooks for event handling when the tab is selected or unselected. Additionally, it provides a way to manage visibility and layout of contained elements based on the ribbon's state.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadRibbonTab : HeaderedItemsControl, IRadTabItem

Inheritance: objectRadRibbonTab

Implements: IRadTabItem

Constructors

Initializes a new instance of the RadRibbonTab class.

C#
public RadRibbonTab()

Fields

ContextualGroupNameProperty

DependencyProperty

Identifies the ContextualGroupName property.

C#
public static readonly DependencyProperty ContextualGroupNameProperty

HeaderVisibilityProperty

DependencyProperty

Identifies the HeaderVisibility property.

C#
public static readonly DependencyProperty HeaderVisibilityProperty

Identifies the IsContextualTabVisible property.

C#
public static readonly DependencyProperty IsContextualTabVisibleProperty

IsSelectedProperty

DependencyProperty

Identifies the property.

C#
public static readonly DependencyProperty IsSelectedProperty

MinimizedBackgroundProperty

DependencyProperty

Identifies the MinimizedBackground property.

C#
public static readonly DependencyProperty MinimizedBackgroundProperty

Properties

Gets or sets the associated Contextual Groups.

C#
public string ContextualGroupName { get; set; }

Gets or sets a value indicating whether the header of the tab will be visible.

C#
public Visibility HeaderVisibility { get; set; }

Gets value indicating whether the ContextualTab is visible or not.

C#
public bool? IsContextualTabVisible { get; }

Gets or sets a value indicating whether this instance is selected.

C#
public bool IsSelected { get; set; }
Property Value:

True if this instance is selected; otherwise, false.

Implements: IRadTabItem.IsSelected

Gets or sets a brushed used for the Background of RibbonTab when the Ribbon is minimized.

C#
public Brush MinimizedBackground { get; set; }

Gets or sets the collection used to display items in RibbonView's Simplified state.

C#
public ObservableCollection<RadRibbonGroup> SimplifiedItems { get; }

SimplifiedResources

ResourceDictionary

Gets or sets the resource dictionary used in RibbonView's Simplified state.

C#
public ResourceDictionary SimplifiedResources { get; }

Gets the tab strip placement.

C#
public Dock TabStripPlacement { get; }

Implements: IRadTabItem.TabStripPlacement

Methods

Called when the control is arranged.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSizeReturns:

Size

Updates the visual state of the control.

C#
protected void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

Indicates whether transitions should be used.

Creates or identifies the element that is used to display the given item.

C#
protected override sealed DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

The element that is used to display the given item.

Determines if the specified item is (or is eligible to be) its own container.

C#
protected override sealed bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobjectReturns:

bool

Called when the control template is applied.

C#
public override void OnApplyTemplate()

Called when the control has been initialized.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

Called when the IsSelected property has changed.

C#
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The old value of the IsSelected property.

newValuebool

The new value of the IsSelected property.

Called before the System.Windows.UIElement.MouseEnter event occurs.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called before the System.Windows.UIElement.MouseLeave event occurs.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Resets the theme.

C#
public void ResetTheme()

Sets the tab orientation.

C#
public void SetTabOrientation(Orientation orientation)
Parameters:orientationOrientation

The orientation.

Implements: IRadTabItem.SetTabOrientation(Orientation)

Updates the content of the header presenter.

C#
public void UpdateHeaderPresenterContent()

Implements: IRadTabItem.UpdateHeaderPresenterContent()

Updates the tab strip placement.

C#
public void UpdateTabStripPlacement(Dock placement)
Parameters:placementDock

The placement.

Implements: IRadTabItem.UpdateTabStripPlacement(Dock)