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