New to Telerik UI for WinForms? Start a free 30-day trial

Provides RibbonBar-specific key-tip activation and arrow-key navigation.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadRibbonBar.RibbonBarInputBehavior : ComponentInputBehavior, IDisposable

Inheritance: objectComponentBehaviorComponentInputBehaviorRadRibbonBar.RibbonBarInputBehavior

Implements: IDisposable

Inherited Members ComponentInputBehavior.OnMouseCaptureChanged(EventArgs)ComponentInputBehavior.OnMouseUp(MouseEventArgs)ComponentInputBehavior.OnMouseDown(MouseEventArgs)ComponentInputBehavior.OnDoubleClick(EventArgs)ComponentInputBehavior.OnClick(EventArgs)ComponentInputBehavior.OnMouseEnter(EventArgs)ComponentInputBehavior.OnMouseLeave(EventArgs)ComponentInputBehavior.OnMouseMove(MouseEventArgs)ComponentInputBehavior.OnMouseHover(EventArgs)ComponentInputBehavior.OnMouseWheel(MouseEventArgs)ComponentInputBehavior.HandleMouseLeave(EventArgs)ComponentInputBehavior.HandleMouseLeave(EventArgs, RadElement)ComponentInputBehavior.OnGesture(GestureEventArgs)ComponentInputBehavior.Dispose(bool)ComponentInputBehavior.GetHoveredRadElement()ComponentInputBehavior.OnHoveredElementChanged(HoveredElementChangedEventArgs)ComponentInputBehavior.EnableComponentInputBehavior.MouseHoverTimerComponentInputBehavior.HoveredElementChangedComponentBehavior.ItemCaptureStateComponentBehavior.Dispose()ComponentBehavior.GetActivatedItem(Control, char)ComponentBehavior.GetActivatedItem(RadElement, char)ComponentBehavior.ProcessMnemonic(char)ComponentBehavior.GetThemedChildControlsList(Control, List<Control>)ComponentBehavior.GetValidChildControlByMnemonic(List<Control>, char)ComponentBehavior.GetMnemonicText(string)ComponentBehavior.ProcessMnemonicChar(char)ComponentBehavior.OnGotFocus(EventArgs)ComponentBehavior.OnLostFocus(EventArgs)ComponentBehavior.IsFocusWithin(RadElement)ComponentBehavior.SetElementValue(RadElement, RadProperty, object)ComponentBehavior.HideScreenTip()ComponentBehavior.DisposeKeyTips()ComponentBehavior.ResetKeyMap()ComponentBehavior.ResetKeyMapInternal()ComponentBehavior.GetKeyMapFocus()ComponentBehavior.ReturnKeyMapFocus()ComponentBehavior.OnEnableKeyTipsChanged()ComponentBehavior.InitializeAdornerLayer()ComponentBehavior.DisposeAdornerLayer()ComponentBehavior.ProcessUnmappedItems(List<RadItem>)ComponentBehavior.IsIndexOfItemKeyTip(RadItem, string)ComponentBehavior.IsExactMatch(RadItem, string)ComponentBehavior.IsPartOfKeyTip(Keys, string)ComponentBehavior.GetCurrentKeyMap(RadItem)ComponentBehavior.GetKeyStringRepresentation(Keys)ComponentBehavior.FocusedElementComponentBehavior.AllowShowFocusCuesComponentBehavior.ToolTipComponentBehavior.ToolTipOffsetYComponentBehavior.ToolTipOffsetXComponentBehavior.DefaultShowItemToolTipsComponentBehavior.ShowItemToolTipsComponentBehavior.ShowScreenTipsBellowControlComponentBehavior.CommandBindingsComponentBehavior.IsParentFormActiveComponentBehavior.EnableKeyMapComponentBehavior.MouseOverComponentBehavior.OwnerComponentBehavior.OwnerControlComponentBehavior.SelectedElementComponentBehavior.BitmapRepository...

Constructors

Creates the input behavior for the specified RibbonBar, enables key tips, and places screen tips below the control.

C#
public RibbonBarInputBehavior(RadRibbonBar owner)
Parameters:ownerRadRibbonBar

The RibbonBar whose elements are navigated.

Methods

Activates the selected key-tip target using RibbonBar-specific behavior, such as selecting a tab, opening a menu, performing a button click, or focusing an editable control.

C#
protected override bool ActivateSelectedItem(RadItem currentKeyMapItem)
Parameters:currentKeyMapItemRadItem

The selected key-tip target.

Returns:

bool

Overrides: ComponentBehavior.ActivateSelectedItem(RadItem)

Gets key-tip targets nested under the current tab, group, or other element. Collapsed groups contribute their drop-down items directly; expanded groups are traversed recursively, with enabled and visibility checks applied in several branches.

C#
protected override List<RadItem> GetKeyFocusChildren(RadItem currentKeyMapItem)
Parameters:currentKeyMapItemRadItem

The current key-tip target, or null to retrieve root items.

Returns:

List<RadItem>

Overrides: ComponentBehavior.GetKeyFocusChildren(RadItem)

Gets the application button and the enabled Quick Access Toolbar items and command tabs that start key-tip navigation.

C#
protected override List<RadItem> GetRootItems()
Returns:

List<RadItem>

Overrides: ComponentBehavior.GetRootItems()

Clears the remembered navigation target after the base key map is initialized.

C#
protected override void InitializeKeyMap()

Overrides: ComponentBehavior.InitializeKeyMap()

Processes arrow keys in RibbonBar keyboard-navigation mode. An arrow key starts navigation when the key map is active and navigation is enabled; arrow keys are consumed while navigation is active.

C#
protected bool ProcessArrowKeys(Keys input)
Parameters:inputKeys

The key to process.

Returns:

bool

true if an arrow key was handled; otherwise, false.

Focuses the selected tab, the first tab, or the tab strip, then captures mouse input unless the RibbonBar is disposed.

C#
protected override bool SetInternalKeyMapFocus()
Returns:

bool

Overrides: ComponentBehavior.SetInternalKeyMapFocus()

When Backstage View is visible, delegates to its behavior's SetKeyMap method if enabled and returns false. When Backstage View is not visible, delegates to the base behavior.

C#
public override bool SetKeyMap()
Returns:

bool

Overrides: ComponentBehavior.SetKeyMap()