Class
RadRibbonBar

other Telerik RadControls and Windows Represents a RadRibbonBar. The RadRibbon bar visual appearance can be customized in numerous ways through themes. Also you can nest other telerik controls in the ribbon bar chunks thus creating intuitive interface for your applications. All of the application's functionality is accessible from a single ribbon. The ribbon is divided into command tabs such as Write, Insert, and Page Layout. When the users clicks on a command tab, they see chunks such as Clipboard, Font, and Paragraph. Each chunk can hold an unlimited number of controls including toolbars, comboboxes, and Forms controls.

The RadRibbonBar class is a simple wrapper for the RadRibbonBarElement class. All UI and logic functionality is implemented in RadRibbonBarElement class. RadRibbonBar acts to transfer the events to and from its RadRibbonBarElement class.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Menus & Toolbars")]
public class RadRibbonBar : RadNonClientUIControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadRibbonBar

Derived Classes: RadDiagramRibbonBarRadSpreadsheetRibbonBarRichTextEditorRibbonBar

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadNonClientUIControl.WndProc(ref Message)RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateRootElement()RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.IsInitializingRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadRibbonBar()

Initializes a new instance of the RadRibbonBar class.

Declaration

cs-api-definition
public RadRibbonBar()

Fields

ExpandCollapseCommand

Command for expanding or collapsing the ribbon bar.

Declaration

cs-api-definition
public static readonly ExpandCollapseCommand ExpandCollapseCommand

Field Value

ExpandCollapseCommand

Properties

ApplicationMenuAnimantionType

Gets or sets a value indicating the type of the fade animation.

Declaration

cs-api-definition
public virtual FadeAnimationType ApplicationMenuAnimantionType { get; set; }

Property Value

FadeAnimationType

ApplicationMenuStyle

Gets or sets the application menu style for the ribbon bar.

Declaration

cs-api-definition
[Browsable(true)]
public virtual ApplicationMenuStyle ApplicationMenuStyle { get; set; }

Property Value

ApplicationMenuStyle

BackstageControl

Gets or sets the backstage control for the ribbon bar.

Declaration

cs-api-definition
[Browsable(false)]
public RadRibbonBarBackstageView BackstageControl { get; set; }

Property Value

RadRibbonBarBackstageView

CausesValidation

Gets or sets a flag indicating whether the control causes validation

Declaration

cs-api-definition
[Browsable(false)]
public bool CausesValidation { get; set; }

Property Value

bool

CloseButton

Gets or sets if the ribbon bar has close button in its caption

Declaration

cs-api-definition
public bool CloseButton { get; set; }

Property Value

bool

CollapseRibbonOnTabDoubleClick

Gets or sets a value indicating whether the ribbon bar will be collapsed or expanded on ribbon tab double click.

Declaration

cs-api-definition
[Browsable(false)]
public bool CollapseRibbonOnTabDoubleClick { get; set; }

Property Value

bool

CommandTabs

Gets the collection of command tabs in the ribbon bar.

Declaration

cs-api-definition
[Browsable(true)]
[RadEditItemsAction]
[RadNewItem("Add New Tab...", true, true, false)]
public virtual RadRibbonBarCommandTabCollection CommandTabs { get; }

Property Value

RadRibbonBarCommandTabCollection

ContextualTabGroups

Gets the collection of contextual tab groups in the ribbon bar.

Declaration

cs-api-definition
[Browsable(true)]
[RadEditItemsAction]
[RadNewItem("Add Context...", true, true, false)]
public RadItemOwnerCollection ContextualTabGroups { get; }

Property Value

RadItemOwnerCollection

DefaultSize

Gets or sets the default size of the ribbon bar control.

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

A Size structure representing the default size.

Overrides Control.DefaultSize

Dock

Gets or sets which edge of the parent container a control is docked to.

Declaration

cs-api-definition
public override DockStyle Dock { get; set; }

Property Value

DockStyle

Overrides Control.Dock

EnableKeyMap

Gets or sets whether Key Map (MS Office like accelerator keys map) is used for this specific control. Currently this option is implemented for the RadRibbonBar control only.

Declaration

cs-api-definition
[Browsable(true)]
public override bool EnableKeyMap { get; set; }

Property Value

bool

Overrides RadControl.EnableKeyMap

EnableKeyboardNavigation

Allows the user to navigate the control using the keyboard

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableKeyboardNavigation { get; set; }

Property Value

bool

EnableTabScrollingOnMouseWheel

Gets or sets a value indicating whether tab scrolling on mouse wheel is enabled.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableTabScrollingOnMouseWheel { get; set; }

Property Value

bool

ExitButton

Gets the exit menu button

Declaration

cs-api-definition
[Browsable(true)]
public RadMenuButtonItem ExitButton { get; }

Property Value

RadMenuButtonItem

ExpandButton

Represent the Ribbon Expand button

Declaration

cs-api-definition
public RadToggleButtonElement ExpandButton { get; set; }

Property Value

RadToggleButtonElement

Expanded

Gets or sets a value indicating whether the ribbon bar is expanded.

Declaration

cs-api-definition
[Browsable(false)]
public bool Expanded { get; set; }

Property Value

bool

HelpButton

Represent the Ribbon Help button

Declaration

cs-api-definition
public RadImageButtonElement HelpButton { get; set; }

Property Value

RadImageButtonElement

HelpButtonElement

Gets the help button element of the ribbon bar.

Declaration

cs-api-definition
public override RadItem HelpButtonElement { get; }

Property Value

RadItem

A RadItem representing the help button element.

Overrides RadNonClientUIControl.HelpButtonElement

IconCaptionElement

Gets the icon caption element of the ribbon bar.

Declaration

cs-api-definition
public override ImagePrimitive IconCaptionElement { get; }

Property Value

ImagePrimitive

An ImagePrimitive representing the icon caption element.

Overrides RadNonClientUIControl.IconCaptionElement

LayoutMode

Gets or sets the layout mode of the ribbon bar, determining whether it uses default or simplified layout.

Declaration

cs-api-definition
[Browsable(false)]
public RibbonLayout LayoutMode { get; set; }

Property Value

RibbonLayout

LocalizationSettings

Gets the localization settings associated with this control

Declaration

cs-api-definition
public RibbonBarLocalizationSettings LocalizationSettings { get; }

Property Value

RibbonBarLocalizationSettings

MaximizeButton

Gets or sets if the ribbon bar has maximize button in its caption

Declaration

cs-api-definition
public bool MaximizeButton { get; set; }

Property Value

bool

MaximizeButtonElement

Gets the maximize button element of the ribbon bar.

Declaration

cs-api-definition
public override RadItem MaximizeButtonElement { get; }

Property Value

RadItem

A RadItem representing the maximize button element.

Overrides RadNonClientUIControl.MaximizeButtonElement

MinimizeButton

Gets or sets if the ribbon bar has minimize button in its caption

Declaration

cs-api-definition
public bool MinimizeButton { get; set; }

Property Value

bool

MinimizeButtonElement

Gets the minimize button element of the ribbon bar.

Declaration

cs-api-definition
public override RadItem MinimizeButtonElement { get; }

Property Value

RadItem

A RadItem representing the minimize button element.

Overrides RadNonClientUIControl.MinimizeButtonElement

OptionsButton

Gets the options menu button

Declaration

cs-api-definition
[Browsable(true)]
public RadMenuButtonItem OptionsButton { get; }

Property Value

RadMenuButtonItem

QuickAccessToolBar

Gets the QuickAccessToolBar element

Declaration

cs-api-definition
[Browsable(true)]
public RadQuickAccessToolBar QuickAccessToolBar { get; }

Property Value

RadQuickAccessToolBar

QuickAccessToolBarHeight

Gets or sets the height of the Quick Access Toolbar.

Declaration

cs-api-definition
[Browsable(true)]
public int QuickAccessToolBarHeight { get; set; }

Property Value

int

QuickAccessToolBarItems

Gets the collection of items in the Quick Access Toolbar.

Declaration

cs-api-definition
[Browsable(true)]
[RadEditItemsAction]
[RadNewItem("Type here", true, false)]
public virtual RadItemOwnerCollection QuickAccessToolBarItems { get; }

Property Value

RadItemOwnerCollection

QuickAccessToolbarBelowRibbon

Gets or sets a value indicating whether the Quick Access Toolbar is positioned below the ribbon.

Declaration

cs-api-definition
[Browsable(true)]
public bool QuickAccessToolbarBelowRibbon { get; set; }

Property Value

bool

RibbonBarElement

Gets the instance of RadRibbonBarElement wrapped by this control. RadRibbonBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadRibbonBar.

Declaration

cs-api-definition
[Browsable(false)]
public RadRibbonBarElement RibbonBarElement { get; }

Property Value

RadRibbonBarElement

SelectedCommandTab

Gets the currently selected command tab in the ribbon bar.

Declaration

cs-api-definition
[Browsable(false)]
public RibbonTab SelectedCommandTab { get; }

Property Value

RibbonTab

ShowExpandButton

Get or sets value indicating whether RibbonBar Help button is visible or hidden.

Declaration

cs-api-definition
public bool ShowExpandButton { get; set; }

Property Value

bool

ShowHelpButton

Get or sets value indicating whether RibbonBar Help button is visible or hidden.

Declaration

cs-api-definition
public bool ShowHelpButton { get; set; }

Property Value

bool

ShowLayoutModeButton

Gets or sets a value indicating whether the layout mode button is visible in the ribbon bar.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool ShowLayoutModeButton { get; set; }

Property Value

bool

SimplifiedHeight

Gets or sets the height of the ribbon bar when in simplified layout mode.

Declaration

cs-api-definition
[Browsable(true)]
public int SimplifiedHeight { get; set; }

Property Value

int

SmallImageList

Gets or sets the small image list

Declaration

cs-api-definition
[Browsable(true)]
public override ImageList SmallImageList { get; set; }

Property Value

ImageList

Overrides RadControl.SmallImageList

StartButtonImage

Gets or sets the image for the start button of the ribbon bar.

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(ImageTypeConverter))]
public Image StartButtonImage { get; set; }

Property Value

Image

StartMenuBottomStrip

Gets the collection of items in the bottom strip of the start menu.

Declaration

cs-api-definition
[Browsable(false)]
public RadItemOwnerCollection StartMenuBottomStrip { get; }

Property Value

RadItemOwnerCollection

StartMenuItems

Gets the collection of items in the start menu.

Declaration

cs-api-definition
[Browsable(true)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection StartMenuItems { get; }

Property Value

RadItemOwnerCollection

StartMenuRightColumnItems

Gets the collection of items in the right column of the start menu.

Declaration

cs-api-definition
[Browsable(true)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection StartMenuRightColumnItems { get; }

Property Value

RadItemOwnerCollection

StartMenuWidth

Gets or sets the width of the start menu.

Declaration

cs-api-definition
[Browsable(true)]
public int StartMenuWidth { get; set; }

Property Value

int

SystemButtonsElement

Gets the system buttons element of the ribbon bar.

Declaration

cs-api-definition
public override RadItem SystemButtonsElement { get; }

Property Value

RadItem

A RadItem representing the system buttons element.

Overrides RadNonClientUIControl.SystemButtonsElement

Text

Gets or sets the text of the control

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides RadControl.Text

TextCaptionElement

Gets the text caption element of the ribbon bar.

Declaration

cs-api-definition
public override RadElement TextCaptionElement { get; }

Property Value

RadElement

A RadElement representing the text caption element.

Overrides RadNonClientUIControl.TextCaptionElement

Methods

ControlDefinesThemeForElement(RadElement)

Determines whether the control defines the theme for the specified element.

Declaration

cs-api-definition
public override bool ControlDefinesThemeForElement(RadElement element)

Parameters

element

RadElement

The element to check theme definition for.

Returns

bool

True if the control defines the theme for the element; otherwise, false.

Overrides RadControl.ControlDefinesThemeForElement(RadElement)

CreateAccessibilityInstance()

Creates an accessibility instance for the ribbon bar control.

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

An AccessibleObject that provides accessibility information for the control.

Overrides Control.CreateAccessibilityInstance()

CreateBehavior()

Creates the input behavior for handling keyboard and mouse interactions.

Declaration

cs-api-definition
protected override ComponentInputBehavior CreateBehavior()

Returns

ComponentInputBehavior

A ComponentInputBehavior instance that handles input for the ribbon bar.

Overrides RadControl.CreateBehavior()

CreateChildItems(RadElement)

Creates the child items for the ribbon bar control.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the child items.

Overrides RadControl.CreateChildItems(RadElement)

CreateRibbonBarElement()

Creates a new RadRibbonBarElement.

Declaration

cs-api-definition
protected virtual RadRibbonBarElement CreateRibbonBarElement()

Returns

RadRibbonBarElement

The created ribbon bar element.

Dispose(bool)

Releases the unmanaged resources used by the RadRibbonBar and optionally releases the managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

True to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides RadControl.Dispose(bool)

InitializeRootElement(RootRadElement)

Initializes the root element of the ribbon bar control.

Declaration

cs-api-definition
protected override void InitializeRootElement(RootRadElement rootElement)

Parameters

rootElement

RootRadElement

The root element to initialize.

Overrides RadControl.InitializeRootElement(RootRadElement)

OnCommandTabSelected(CommandTabEventArgs)

Raises the CommandTabSelected event.

Declaration

cs-api-definition
protected virtual void OnCommandTabSelected(CommandTabEventArgs args)

Parameters

args

CommandTabEventArgs

The event arguments containing information about the selected command tab.

OnCommandTabSelecting(CommandTabSelectingEventArgs)

Raises the CommandTabSelecting event.

Declaration

cs-api-definition
protected virtual void OnCommandTabSelecting(CommandTabSelectingEventArgs args)

Parameters

args

CommandTabSelectingEventArgs

The event arguments containing information about the command tab being selected.

OnKeyDown(KeyEventArgs)

Handles key down events for keyboard navigation and key mapping.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The key event arguments.

Overrides RadControl.OnKeyDown(KeyEventArgs)

OnKeyTipItemActivating(RadItem, CancelEventArgs)

Handles the key tip item activation event.

Declaration

cs-api-definition
protected bool OnKeyTipItemActivating(RadItem item, CancelEventArgs eventArgs)

Parameters

item

RadItem

The item being activated.

eventArgs

CancelEventArgs

The event arguments containing cancellation information.

Returns

bool

True if the activation was cancelled; otherwise, false.

OnKeyTipShowing(RadItem, CancelEventArgs)

Raises the KeyTipShowing event when a key tip is about to be shown.

Declaration

cs-api-definition
protected virtual bool OnKeyTipShowing(RadItem currentKeyMapItem, CancelEventArgs eventArgs)

Parameters

currentKeyMapItem

RadItem

The current key map item.

eventArgs

CancelEventArgs

The event arguments containing cancellation information.

Returns

bool

True if the key tip showing was cancelled; otherwise, false.

OnLayoutModeChanged(EventArgs)

Raises the LayoutModeChanged event when the layout mode changes.

Declaration

cs-api-definition
protected virtual void OnLayoutModeChanged(EventArgs args)

Parameters

args

EventArgs

The event arguments.

OnMouseWheel(MouseEventArgs)

Handles the mouse wheel event to enable tab scrolling when configured.

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments containing wheel information.

Overrides RadControl.OnMouseWheel(MouseEventArgs)

OnPaint(PaintEventArgs)

Handles the paint event and renders key tips when the key map is active.

Declaration

cs-api-definition
protected override void OnPaint(PaintEventArgs e)

Parameters

e

PaintEventArgs

The paint event arguments.

Overrides RadControl.OnPaint(PaintEventArgs)

OnParentChanged(EventArgs)

Handles the parent changed event to update ribbon bar text and form association.

Declaration

cs-api-definition
protected override void OnParentChanged(EventArgs e)

Parameters

e

EventArgs

The event arguments.

Overrides RadControl.OnParentChanged(EventArgs)

OnRibbonBarExpandedStateChanged(EventArgs)

Raises the ExpandedStateChanged event when the ribbon bar's expanded state changes.

Declaration

cs-api-definition
protected virtual void OnRibbonBarExpandedStateChanged(EventArgs args)

Parameters

args

EventArgs

The event arguments.

OnRightToLeftChanged(EventArgs)

Handles right-to-left layout changes and updates the ribbon bar accordingly.

Declaration

cs-api-definition
protected override void OnRightToLeftChanged(EventArgs e)

Parameters

e

EventArgs

The event arguments.

Overrides RadControl.OnRightToLeftChanged(EventArgs)

OnThemeChanged()

Handles theme changes and updates related elements accordingly.

Declaration

cs-api-definition
protected override void OnThemeChanged()

Overrides RadControl.OnThemeChanged()

PaintKeyMap(Graphics)

Paints the key map when keyboard navigation is active.

Declaration

cs-api-definition
protected virtual void PaintKeyMap(Graphics graphics)

Parameters

graphics

Graphics

The graphics context to paint on.

PaintKeyTip(Graphics, RadKeyTipShowingEventArgs, string)

Paints an individual key tip on the specified graphics context.

Declaration

cs-api-definition
protected virtual void PaintKeyTip(Graphics graphics, RadKeyTipShowingEventArgs args, string keyTip)

Parameters

graphics

Graphics

The graphics context to paint on.

args

RadKeyTipShowingEventArgs

The key tip showing event arguments containing appearance settings.

keyTip

string

The key tip text to display.

ProcessAutoSizeChanged(bool)

Processes auto-size changes for the ribbon bar control.

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

The new auto-size value.

Overrides RadControl.ProcessAutoSizeChanged(bool)

ProcessCmdKey(ref Message, Keys)

Processes command keys for keyboard navigation and arrow key handling.

Declaration

cs-api-definition
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg

Message

The Windows message to process.

keyData

Keys

The key data to process.

Returns

bool

True if the command key was processed; otherwise, false.

Overrides Control.ProcessCmdKey(ref Message, Keys)

ProcessCodedUIMessage(ref IPCMessage)

Processes CodedUI messages for automation support.

Declaration

cs-api-definition
protected override void ProcessCodedUIMessage(ref IPCMessage request)

Parameters

request

IPCMessage

The IPC message request to process.

Overrides RadControl.ProcessCodedUIMessage(ref IPCMessage)

WmNCHitTest(ref Message)

Handles window non-client hit testing for form integration.

Declaration

cs-api-definition
protected override bool WmNCHitTest(ref Message msg)

Parameters

msg

Message

The Windows message to process.

Returns

bool

True if the message was handled; otherwise, false.

Overrides RadNonClientUIControl.WmNCHitTest(ref Message)

Events

CommandTabSelected

Occurs when a command tab is selected.

Declaration

cs-api-definition
public event CommandTabEventHandler CommandTabSelected

Event Value

CommandTabEventHandler

CommandTabSelecting

Occurs before a command tab is selected, allowing the operation to be cancelled.

Declaration

cs-api-definition
public event CommandTabSelectingEventHandler CommandTabSelecting

Event Value

CommandTabSelectingEventHandler

ExpandedStateChanged

Occurs when the expanded state of the ribbon bar changes.

Declaration

cs-api-definition
public event EventHandler ExpandedStateChanged

Event Value

EventHandler

KeyTipActivating

Occurs when the user activates a key tip.

Declaration

cs-api-definition
public event CancelEventHandler KeyTipActivating

Event Value

CancelEventHandler

KeyTipShowing

Occurs when the ribbon bar is about to show key tips.

Declaration

cs-api-definition
public event CancelEventHandler KeyTipShowing

Event Value

CancelEventHandler

LayoutModeChanged

Occurs when the layout mode of the ribbon bar changes.

Declaration

cs-api-definition
public event EventHandler LayoutModeChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadRibbonBar()FieldsExpandCollapseCommandPropertiesApplicationMenuAnimantionTypeApplicationMenuStyleBackstageControlCausesValidationCloseButtonCollapseRibbonOnTabDoubleClickCommandTabsContextualTabGroupsDefaultSizeDockEnableKeyMapEnableKeyboardNavigationEnableTabScrollingOnMouseWheelExitButtonExpandButtonExpandedHelpButtonHelpButtonElementIconCaptionElementLayoutModeLocalizationSettingsMaximizeButtonMaximizeButtonElementMinimizeButtonMinimizeButtonElementOptionsButtonQuickAccessToolBarQuickAccessToolBarHeightQuickAccessToolBarItemsQuickAccessToolbarBelowRibbonRibbonBarElementSelectedCommandTabShowExpandButtonShowHelpButtonShowLayoutModeButtonSimplifiedHeightSmallImageListStartButtonImageStartMenuBottomStripStartMenuItemsStartMenuRightColumnItemsStartMenuWidthSystemButtonsElementTextTextCaptionElementMethodsControlDefinesThemeForElement(RadElement)CreateAccessibilityInstance()CreateBehavior()CreateChildItems(RadElement)CreateRibbonBarElement()Dispose(bool)InitializeRootElement(RootRadElement)OnCommandTabSelected(CommandTabEventArgs)OnCommandTabSelecting(CommandTabSelectingEventArgs)OnKeyDown(KeyEventArgs)OnKeyTipItemActivating(RadItem, CancelEventArgs)OnKeyTipShowing(RadItem, CancelEventArgs)OnLayoutModeChanged(EventArgs)OnMouseWheel(MouseEventArgs)OnPaint(PaintEventArgs)OnParentChanged(EventArgs)OnRibbonBarExpandedStateChanged(EventArgs)OnRightToLeftChanged(EventArgs)OnThemeChanged()PaintKeyMap(Graphics)PaintKeyTip(Graphics, RadKeyTipShowingEventArgs, string)ProcessAutoSizeChanged(bool)ProcessCmdKey(ref Message, Keys)ProcessCodedUIMessage(ref IPCMessage)WmNCHitTest(ref Message)EventsCommandTabSelectedCommandTabSelectingExpandedStateChangedKeyTipActivatingKeyTipShowingLayoutModeChanged
Not finding the help you need?
Contact Support