Class RadRibbonBarElement
Represents a ribbon bar element. The RadRibbonBarElement can be nested in other telerik controls. Essentially RadRibbonBar class is a simple wrapper for RadRibbonBarElement class. RadRibbonBar acts to transfer events to and from the its corresponding instance of the RadRibbonBarElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[ComVisible(false)]
public class RadRibbonBarElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadRibbonBarElement()
Declaration
public RadRibbonBarElement()
Fields
IsBackstageModeProperty
IsRibbonFormActiveProperty
QuickAccessMenuHeightProperty
QuickAccessToolbarBelowRibbonProperty
RibbonFormWindowStateProperty
SimplifiedHeightProperty
Properties
ApplicationButtonElement
Gets the application menu element
Declaration
public RadApplicationMenuButtonElement ApplicationButtonElement { get; }
Property Value
ApplicationMenuRightColumnWidth
Declaration
public int ApplicationMenuRightColumnWidth { get; set; }
Property Value
System.
|
ApplicationMenuStyle
Declaration
public ApplicationMenuStyle ApplicationMenuStyle { get; set; }
Property Value
BackstageControl
Declaration
public RadRibbonBarBackstageView BackstageControl { get; set; }
Property Value
ButtonsContainer
CaptionBorder
Gets the Border
Declaration
public BorderPrimitive CaptionBorder { get; }
Property Value
CaptionFill
Gets the Fill
Declaration
public FillPrimitive CaptionFill { get; }
Property Value
CloseButton
Gets or sets the Close button
Declaration
public bool CloseButton { get; set; }
Property Value
System.
|
CollapseRibbonOnTabDoubleClick
Declaration
public bool CollapseRibbonOnTabDoubleClick { get; set; }
Property Value
System.
|
CollapsingEnabled
Gets or sets a boolean value determining whether the groups are collapsed according to the ribbon's size.
Declaration
public bool CollapsingEnabled { get; set; }
Property Value
System.
|
CommandTabs
Gets a collection of the command tabs.
Declaration
[RadEditItemsAction]
public RadRibbonBarCommandTabCollection CommandTabs { get; }
Property Value
ContextualTabGroups
Gets a collection of contextual tab groups.
Declaration
[RadNewItem("Add New Group...", true, true, false)]
public RadItemOwnerCollection ContextualTabGroups { get; }
Property Value
ExitButton
Gets the exit menu button
Declaration
public RadMenuButtonItem ExitButton { get; }
Property Value
ExpandButton
Declaration
public RadToggleButtonElement ExpandButton { get; set; }
Property Value
Expanded
Gets or sets a boolean value indicating whether the RadRibbonBarElement is expanded or not.
Declaration
public bool Expanded { get; set; }
Property Value
System.
|
HelpButton
Declaration
public RadImageButtonElement HelpButton { get; set; }
Property Value
IconPrimitive
LayoutMode
Gets or sets the ribbon layout.
Declaration
[RadPropertyDefaultValue("LayoutMode", typeof(RadRibbonBarElement))]
public RibbonLayout LayoutMode { get; set; }
Property Value
LayoutModeButton
Declaration
public RadToggleSwitchElement LayoutModeButton { get; set; }
Property Value
LayoutModeTextElement
Declaration
public LightVisualElement LayoutModeTextElement { get; set; }
Property Value
LocalizationSettings
Gets or the localization settings for this element
Declaration
public RibbonBarLocalizationSettings LocalizationSettings { get; }
Property Value
MaximizeButton
Gets or sets the Maximize button
Declaration
public bool MaximizeButton { get; set; }
Property Value
System.
|
MDIbutton
MinimizeButton
Gets or sets the Minimize button
Declaration
public bool MinimizeButton { get; set; }
Property Value
System.
|
OptionsButton
Gets the options menu button
Declaration
public RadMenuButtonItem OptionsButton { get; }
Property Value
Popup
Gets an instance of the RibbonBarPopup class which represents the RadRibbonBar popup.
Declaration
public RibbonBarPopup Popup { get; }
Property Value
QuickAccessMenuHeight
Gets or sets the height of the quick access.
Declaration
[RadPropertyDefaultValue("QuickAccessMenuHeight", typeof(RadRibbonBarElement))]
public int QuickAccessMenuHeight { get; set; }
Property Value
System.
|
QuickAccessMenuItems
Gets the collection of quick access menu items.
Declaration
public RadItemOwnerCollection QuickAccessMenuItems { get; }
Property Value
QuickAccessToolBar
Gets the QuickAccessToolBar
Declaration
public RadQuickAccessToolBar QuickAccessToolBar { get; }
Property Value
QuickAccessToolbarBelowRibbon
Gets or sets if the quick access toolbar is below the ribbon.
Declaration
[RadPropertyDefaultValue("QuickAccessToolbarBelowRibbon", typeof(RadRibbonBarElement))]
public bool QuickAccessToolbarBelowRibbon { get; set; }
Property Value
System.
|
RibbonCaption
Declaration
public RadRibbonBarCaption RibbonCaption { get; set; }
Property Value
SelectedCommandTab
Gets the instance of the currently selected command tab.
Declaration
public RibbonTab SelectedCommandTab { get; }
Property Value
ShowExpandButton
Get or sets value indicating whether RibbonBar Expand button is visible or hidden.
Declaration
public bool ShowExpandButton { get; set; }
Property Value
System.
|
ShowHelpButton
Get or sets value indicating whether RibbonBar Help button is visible or hidden.
Declaration
public bool ShowHelpButton { get; set; }
Property Value
System.
|
ShowLayoutModeButton
Gets or sets whether the toggle switch enabling the Simplified ribbon style is visible.
Declaration
[RadPropertyDefaultValue("ShowLayoutModeButton", typeof(RadRibbonBarElement))]
public bool ShowLayoutModeButton { get; set; }
Property Value
System.
|
SimplifiedHeight
Gets or sets the height of the simplified ribbon.
Declaration
[RadPropertyDefaultValue("SimplifiedHeight", typeof(RadRibbonBarElement))]
public int SimplifiedHeight { get; set; }
Property Value
System.
|
StartButtonImage
Gets or sets the image of the start button placed in the top left corner.
Declaration
public Image StartButtonImage { get; set; }
Property Value
System.
|
StartMenuBottomStrip
Gets the collection of the start button menu DropDown which is displayed when the button has two columns.
Declaration
public RadItemOwnerCollection StartMenuBottomStrip { get; }
Property Value
StartMenuItems
Gets the collection of the start button menu item.
Declaration
public RadItemOwnerCollection StartMenuItems { get; }
Property Value
StartMenuRightColumnItems
Gets the collection of the start button menu items which appear on the right.
Declaration
public RadItemOwnerCollection StartMenuRightColumnItems { get; }
Property Value
StartMenuWidth
Gets or sets the width of the start menu
Declaration
public int StartMenuWidth { get; set; }
Property Value
System.
|
TabStripElement
Gets an instance of the TabStripElement which is used to display the tab items in the RibbonBarElement.
Declaration
public RibbonTabStripElement TabStripElement { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
ChangeTabBaseFillStyle(ContextualTabGroup, LightVisualElement, LightVisualElement)
Declaration
protected virtual void ChangeTabBaseFillStyle(ContextualTabGroup group, LightVisualElement contentArea, LightVisualElement tabFill)
Parameters
Contextual
|
Light
|
Light
|
Control_VisibleChanged(Object, EventArgs)
Declaration
protected void Control_VisibleChanged(object sender, EventArgs e)
Parameters
System.
|
System.
|
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateRibbonPopup()
Creates a new Ribbon
Declaration
protected virtual RibbonBarPopup CreateRibbonPopup()
Returns
Ribbon The created pop-up. |
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DoExpandCollapse()
Declaration
protected virtual void DoExpandCollapse()
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.
|
Overrides
GetMaximumRibbonGroupMargin(ExpandableStackLayout)
Declaration
protected virtual float GetMaximumRibbonGroupMargin(ExpandableStackLayout groupsHolder)
Parameters
Expandable
|
Returns
System.
|
GetMaximumTabContentHeight()
Declaration
protected virtual float GetMaximumTabContentHeight()
Returns
System.
|
GetMaximumTabStripHeight()
Declaration
protected virtual float GetMaximumTabStripHeight()
Returns
System.
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnApplicationMenuStyleChanged(EventArgs)
Raises the Application
Declaration
protected virtual void OnApplicationMenuStyleChanged(EventArgs args)
Parameters
System. An Command |
OnBubbleEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
Rad
|
Routed
|
Overrides
OnCommandTabCollapsed(CommandTabEventArgs)
Raises the Command
Declaration
protected virtual void OnCommandTabCollapsed(CommandTabEventArgs args)
Parameters
Command An Command |
OnCommandTabExpanded(CommandTabEventArgs)
Raises the Command
Declaration
protected virtual void OnCommandTabExpanded(CommandTabEventArgs args)
Parameters
Command An Command |
OnCommandTabSelected(CommandTabEventArgs)
Raises the Command
Declaration
protected virtual void OnCommandTabSelected(CommandTabEventArgs args)
Parameters
Command An Command |
OnCommandTabSelecting(CommandTabSelectingEventArgs)
Raises the Command
Declaration
protected virtual void OnCommandTabSelecting(CommandTabSelectingEventArgs args)
Parameters
Command An Command |
OnItemStyleChanged(Object, ItemStyleChangedEventArgs)
Raises the Item
Declaration
protected virtual void OnItemStyleChanged(object sender, ItemStyleChangedEventArgs args)
Parameters
System. The group where the item is located. |
Item An Item |
OnItemStyleChanging(Object, ItemStyleChangingEventArgs)
Raises the Item
Declaration
protected virtual void OnItemStyleChanging(object sender, ItemStyleChangingEventArgs args)
Parameters
System. The group where the item is located. |
Item An Item |
OnItemVisiblityStateChanging(Object, ItemVisiblityStateChangingEventArgs)
Raises the Item
Declaration
protected virtual void OnItemVisiblityStateChanging(object sender, ItemVisiblityStateChangingEventArgs args)
Parameters
System. The item which is about to be changed. |
Item An Item |
OnLayoutModeChanged(EventArgs)
Raises the Layout
Declaration
protected virtual void OnLayoutModeChanged(EventArgs args)
Parameters
System. An System. |
OnLoaded()
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnRibbonBarExpandedStateChanged(EventArgs)
Raises the Expanded
Declaration
protected virtual void OnRibbonBarExpandedStateChanged(EventArgs args)
Parameters
System. An System. |
OnShowRibbonLayoutButtonChanged()
Declaration
protected virtual void OnShowRibbonLayoutButtonChanged()
OnSimplifiedRibbonHeightChanged()
Declaration
protected virtual void OnSimplifiedRibbonHeightChanged()
PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
IGraphics
screenRadGraphics
|
System.
|
System.
|
System.
|
System.
|
Overrides
PerformExpandedCore()
Declaration
protected virtual void PerformExpandedCore()
ShowPopup(RadPageViewItem)
UpdateReferences(ComponentThemableElementTree, Boolean, Boolean)
Declaration
protected override void UpdateReferences(ComponentThemableElementTree tree, bool updateInheritance, bool recursive)
Parameters
Component
|
System.
|
System.
|
Overrides
Events
ApplicationMenuStyleChanged
Declaration
public event EventHandler ApplicationMenuStyleChanged
Event Type
System.
|
CommandTabCollapsed
Occurs when a command tab is collapsed by double clicking an expanded command tab item.
Declaration
public event CommandTabEventHandler CommandTabCollapsed
Event Type
CommandTabExpanded
Occurs when a command tab is expanded by double clicking a collapsed command tab item.
Declaration
public event CommandTabEventHandler CommandTabExpanded
Event Type
CommandTabSelected
Occurs when a command tab is selected.
Declaration
public event CommandTabEventHandler CommandTabSelected
Event Type
CommandTabSelecting
Occurs just before a command tab is selected.
Declaration
public event CommandTabSelectingEventHandler CommandTabSelecting
Event Type
ExpandedStateChanged
Declaration
public event EventHandler ExpandedStateChanged
Event Type
System.
|
ItemStyleChanged
Occurs after a RadProperty has changed after changing the RibbonLayout.
Declaration
public event ItemStyleChangedEventHandler ItemStyleChanged
Event Type
ItemStyleChanging
Occurs when a RadProperty is about to be changed after changing the RibbonLayout.
Declaration
public event ItemStyleChangingEventHandler ItemStyleChanging
Event Type
ItemVisiblityStateChanging
Occurs when an item`s visibility state is about to be changed. The event is raised while resizing the RibbonBar.
Declaration
public event ItemVisiblityStateChangingEventHandler ItemVisiblityStateChanging
Event Type
LayoutModeChanged
Declaration
public event EventHandler LayoutModeChanged
Event Type
System.
|