RadRibbonTab
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:
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadRibbonTab : HeaderedItemsControl, IRadTabItem
Inheritance: objectRadRibbonTab
Implements:
Constructors
Initializes a new instance of the RadRibbonTab class.
public RadRibbonTab()
Fields
ContextualGroupNameProperty
DependencyProperty
Identifies the ContextualGroupName property.
public static readonly DependencyProperty ContextualGroupNameProperty
HeaderVisibilityProperty
DependencyProperty
Identifies the HeaderVisibility property.
public static readonly DependencyProperty HeaderVisibilityProperty
IsContextualTabVisibleProperty
DependencyProperty
Identifies the IsContextualTabVisible property.
public static readonly DependencyProperty IsContextualTabVisibleProperty
IsSelectedProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty IsSelectedProperty
MinimizedBackgroundProperty
DependencyProperty
Identifies the MinimizedBackground property.
public static readonly DependencyProperty MinimizedBackgroundProperty
Properties
Gets or sets the associated Contextual Groups.
public string ContextualGroupName { get; set; }
HeaderVisibility
Visibility
Gets or sets a value indicating whether the header of the tab will be visible.
public Visibility HeaderVisibility { get; set; }
Gets value indicating whether the ContextualTab is visible or not.
public bool? IsContextualTabVisible { get; }
Gets or sets a value indicating whether this instance is selected.
public bool IsSelected { get; set; }
True if this instance is selected; otherwise, false.
Implements:
MinimizedBackground
Brush
Gets or sets a brushed used for the Background of RibbonTab when the Ribbon is minimized.
public Brush MinimizedBackground { get; set; }
Gets or sets the collection used to display items in RibbonView's Simplified state.
public ObservableCollection<RadRibbonGroup> SimplifiedItems { get; }
SimplifiedResources
ResourceDictionary
Gets or sets the resource dictionary used in RibbonView's Simplified state.
public ResourceDictionary SimplifiedResources { get; }
Gets the tab strip placement.
public Dock TabStripPlacement { get; }
Implements:
Methods
Called when the control is arranged.
protected override Size ArrangeOverride(Size finalSize)
Size
Updates the visual state of the control.
protected void ChangeVisualState(bool useTransitions)
Indicates whether transitions should be used.
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override sealed DependencyObject GetContainerForItemOverride()
DependencyObject
The element that is used to display the given item.
Called when the control template is applied.
public override void OnApplyTemplate()
Called when the control has been initialized.
Called before the System.Windows.UIElement.MouseEnter event occurs.
protected override void OnMouseEnter(MouseEventArgs e)
The data for the event.
Called before the System.Windows.UIElement.MouseLeave event occurs.
protected override void OnMouseLeave(MouseEventArgs e)
The data for the event.
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Resets the theme.
public void ResetTheme()
Sets the tab orientation.
public void SetTabOrientation(Orientation orientation)
The orientation.
Implements:
Updates the content of the header presenter.
public void UpdateHeaderPresenterContent()
Implements:
Updates the tab strip placement.
public void UpdateTabStripPlacement(Dock placement)
The placement.
Implements: