RibbonTab
Represents a ribbon tab. Ribbon tabs are used to manage between different groups of related operations, for example, in a text editor application between write and insert functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RibbonTab : RadPageViewStripItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadPageViewElementBaseRadPageViewItemRadPageViewStripItemRibbonTab...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadRibbonBarCommandTab class.
public RibbonTab()
Fields
public static RadProperty LeftShadowInnerColor1Property
public static RadProperty LeftShadowInnerColor2Property
public static RadProperty LeftShadowOuterColor1Property
public static RadProperty LeftShadowOuterColor2Property
public static RadProperty RightShadowInnerColor1Property
public static RadProperty RightShadowInnerColor2Property
public static RadProperty RightShadowOuterColor1Property
public static RadProperty RightShadowOuterColor2Property
Properties
protected virtual bool CanBeAddedToContextualGroup { get; }
Gets an instance of the ExpandableStackLayoutclass that represents the content layout of the tab. In this layout all chunks visible to the end user are put.
[Browsable(false)]
public ExpandableStackLayout ContentLayout { get; }
public RadTabStripContentPanel ContentPanel { get; }
Gets or sets the ContextualTabGroup of this CommandTab.
[Browsable(false)]
public ContextualTabGroup ContextualTabGroup { get; set; }
Gets a value indicating whether this item is currently selected (associated with the SelectedPage of the owning RadPageView). Selection affects visual appearance and content display.
[Browsable(false)]
public override bool IsSelected { get; set; }
Overrides:
Gets the nested items.
[RadNewItem("Add New Group...", true, false, false)]
public virtual RadItemOwnerCollection Items { get; }
Gets or sets the first left inner color of the RibbonTab's shadow.
public Color LeftShadowInnerColor1 { get; set; }
Gets or sets the second left inner color of the RibbonTab's shadow.
public Color LeftShadowInnerColor2 { get; set; }
Gets or sets the first left outer color of the RibbonTab's shadow.
public Color LeftShadowOuterColor1 { get; set; }
Gets or sets the second left outer color of the RibbonTab's shadow.
public Color LeftShadowOuterColor2 { get; set; }
Gets or sets the first right inner color of the RibbonTab's shadow.
public Color RightShadowInnerColor1 { get; set; }
Gets or sets the second right inner color of the RibbonTab's shadow.
public Color RightShadowInnerColor2 { get; set; }
Gets or sets the first right outer color of the RibbonTab's shadow.
public Color RightShadowOuterColor1 { get; set; }
Gets or sets the second right outer color of the RibbonTab's shadow.
public Color RightShadowOuterColor2 { get; set; }
The RibbonTab tab item
public RadPageViewItem Tab { get; set; }
Methods
Disposes of managed resources by detaching from the associated page and clearing owner references to prevent memory leaks and ensure proper cleanup.
protected override void DisposeManagedResources()
Overrides:
Initializes default field values for the page view item, setting up drag support, sizing constraints, text and image alignment, and keyboard interaction properties.
protected override void InitializeFields()
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called before a property value is changed, allowing for validation or cancellation of text changes.
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Overrides:
Paints the element by applying appropriate orientation transforms for fill, content, and border painting, ensuring each painting phase uses the correct coordinate system for proper visual rendering.