skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ComponentBehavior

Inheritance
System.Object
ComponentBehavior
ComponentInputBehavior
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class ComponentBehavior : IDisposable

Constructors

ComponentBehavior(IComponentTreeHandler)

Declaration
public ComponentBehavior(IComponentTreeHandler owner)
Parameters
IComponentTreeHandler owner

Fields

ItemCaptureState

Declaration
protected bool ItemCaptureState
Field Value
System.Boolean

Properties

ActiveKeyMapItem

Declaration
public RadItem ActiveKeyMapItem { get; set; }
Property Value
RadItem

AllowShowFocusCues

Indicates focus cues display, when available, based on the corresponding control type and the current UI state.

Declaration
public virtual bool AllowShowFocusCues { get; set; }
Property Value
System.Boolean

BitmapRepository

Declaration
public FillRepository BitmapRepository { get; }
Property Value
FillRepository

CommandBindings

Declaration
public InputBindingsCollection CommandBindings { get; }
Property Value
InputBindingsCollection

CurrentFocusedElement

This property is used internally!

Declaration
public RadElement CurrentFocusedElement { get; }
Property Value
RadElement

DefaultShowItemToolTips

Declaration
protected virtual bool DefaultShowItemToolTips { get; }
Property Value
System.Boolean

EnableKeyMap

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

Declaration
public bool EnableKeyMap { get; set; }
Property Value
System.Boolean

EnableKeyTips

Gets or sets whether Key Tips (Office 2007 like accelerator keys map) are used for this specific control.

Declaration
public virtual bool EnableKeyTips { get; set; }
Property Value
System.Boolean

FocusedElement

Declaration
public RadElement FocusedElement { get; set; }
Property Value
RadElement

IsKeyMapActive

This property is used internally!

Declaration
public bool IsKeyMapActive { get; }
Property Value
System.Boolean

IsParentFormActive

Gets whether this instance of RadControl is on a active form

Declaration
protected bool IsParentFormActive { get; }
Property Value
System.Boolean

ItemCapture

Only RadItem should manipulate this property

Declaration
public RadElement ItemCapture { get; set; }
Property Value
RadElement

LastFocusedElement

This property is used internally!

Declaration
public RadElement LastFocusedElement { get; }
Property Value
RadElement

MouseOver

Determines whether the mouse over the owning IComponentTreeHandler instance.

Declaration
public bool MouseOver { get; }
Property Value
System.Boolean

Owner

Declaration
protected IComponentTreeHandler Owner { get; }
Property Value
IComponentTreeHandler

OwnerControl

Declaration
protected Control OwnerControl { get; }
Property Value
System.Windows.Forms.Control

SelectedElement

Gets the current selected element (hovered by the mouse).

Declaration
public RadElement SelectedElement { get; }
Property Value
RadElement

Shortcuts

Gets the shortcust collection.

Declaration
public Shortcuts Shortcuts { get; }
Property Value
Shortcuts

ShowItemToolTips

Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the RadControl.

Declaration
public bool ShowItemToolTips { get; set; }
Property Value
System.Boolean

ShowScreenTipsBellowControl

Gets or sets value indicating whether the control should show all screen tips under the control client rectangle, as required for the RibbonBar control, for example

Declaration
public bool ShowScreenTipsBellowControl { get; set; }
Property Value
System.Boolean

ToolTip

Gets the tool tip

Declaration
public ToolTip ToolTip { get; }
Property Value
System.Windows.Forms.ToolTip

The tool tip.

ToolTipOffsetX

Gets or sets the value of how much the tooltip will be moved on the X coordinate

Declaration
public int ToolTipOffsetX { get; set; }
Property Value
System.Int32

ToolTipOffsetY

Gets or sets the value of how much the tooltip will be moved on the Y coordinate

Declaration
public int ToolTipOffsetY { get; set; }
Property Value
System.Int32

Methods

ActivateKeyTipItem(Keys, String)

Declaration
public void ActivateKeyTipItem(Keys input, string inputString)
Parameters
System.Windows.Forms.Keys input

System.String inputString

ActivateSelectedItem(RadItem)

Declaration
protected virtual bool ActivateSelectedItem(RadItem currentKeyMapItem)
Parameters
RadItem currentKeyMapItem

Returns
System.Boolean

Dispose()

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean disposing

DisposeAdornerLayer()

Declaration
protected virtual void DisposeAdornerLayer()

DisposeKeyTips()

Clears all resources reserved for the KeyTips functionality

Declaration
protected virtual void DisposeKeyTips()

FindFormInternal(Control)

This method is used internally.

Declaration
public Form FindFormInternal(Control control)
Parameters
System.Windows.Forms.Control control

Returns
System.Windows.Forms.Form

GetActivatedItem(Control, Char)

Declaration
protected RadItem GetActivatedItem(Control control, char charCode)
Parameters
System.Windows.Forms.Control control

System.Char charCode

Returns
RadItem

GetActivatedItem(RadElement, Char)

Declaration
protected RadItem GetActivatedItem(RadElement element, char charCode)
Parameters
RadElement element

System.Char charCode

Returns
RadItem

GetCurrentKeyMap(RadItem)

Declaration
public virtual List<RadItem> GetCurrentKeyMap(RadItem currentKeyMapItem)
Parameters
RadItem currentKeyMapItem

Returns
System.Collections.Generic.List<RadItem>

GetKeyFocusChildren(RadItem)

Declaration
protected virtual List<RadItem> GetKeyFocusChildren(RadItem currentKeyMapItem)
Parameters
RadItem currentKeyMapItem

Returns
System.Collections.Generic.List<RadItem>

GetKeyMapFocus()

Declaration
protected bool GetKeyMapFocus()
Returns
System.Boolean

GetKeyStringRepresentation(Keys)

Declaration
protected virtual string GetKeyStringRepresentation(Keys input)
Parameters
System.Windows.Forms.Keys input

Returns
System.String

GetMnemonicText(String)

Declaration
protected virtual string GetMnemonicText(string text)
Parameters
System.String text

Returns
System.String

GetRootItems()

Declaration
protected virtual List<RadItem> GetRootItems()
Returns
System.Collections.Generic.List<RadItem>

GetThemedChildControlsList(Control, List<Control>)

Declaration
protected virtual void GetThemedChildControlsList(Control control, List<Control> mnemonicList)
Parameters
System.Windows.Forms.Control control

System.Collections.Generic.List<System.Windows.Forms.Control> mnemonicList

GetValidChildControlByMnemonic(List<Control>, Char)

Declaration
protected virtual Control GetValidChildControlByMnemonic(List<Control> mnemonicList, char charCode)
Parameters
System.Collections.Generic.List<System.Windows.Forms.Control> mnemonicList

System.Char charCode

Returns
System.Windows.Forms.Control

HideScreenTip()

Declaration
public void HideScreenTip()

InitializeAdornerLayer()

Declaration
protected virtual void InitializeAdornerLayer()

InitializeKeyMap()

Declaration
protected virtual void InitializeKeyMap()

IsExactMatch(RadItem, String)

Declaration
protected virtual bool IsExactMatch(RadItem item, string keyTipFragment)
Parameters
RadItem item

System.String keyTipFragment

Returns
System.Boolean

IsFocusWithin(RadElement)

Checks is a given element or any of its descendants contain the focus.

Declaration
public bool IsFocusWithin(RadElement element)
Parameters
RadElement element

The element.

Returns
System.Boolean

[true] if the element or any of its children contain focus, [false] otherwise.

IsIndexOfItemKeyTip(RadItem, String)

Declaration
protected virtual int IsIndexOfItemKeyTip(RadItem item, string keyTipFragment)
Parameters
RadItem item

System.String keyTipFragment

Returns
System.Int32

IsPartOfKeyTip(Keys, String)

Declaration
protected virtual bool IsPartOfKeyTip(Keys input, string representation)
Parameters
System.Windows.Forms.Keys input

System.String representation

Returns
System.Boolean

OnEnableKeyTipsChanged()

Declaration
protected virtual void OnEnableKeyTipsChanged()

OnGotFocus(EventArgs)

Declaration
public virtual bool OnGotFocus(EventArgs e)
Parameters
System.EventArgs e

Returns
System.Boolean

OnLostFocus(EventArgs)

Declaration
public virtual bool OnLostFocus(EventArgs e)
Parameters
System.EventArgs e

Returns
System.Boolean

ProccessKeyMap(Keys)

This method is used internally.

Declaration
public virtual bool ProccessKeyMap(Keys input)
Parameters
System.Windows.Forms.Keys input

Returns
System.Boolean

ProcessMnemonic(Char)

Declaration
protected bool ProcessMnemonic(char charCode)
Parameters
System.Char charCode

Returns
System.Boolean

ProcessMnemonicChar(Char)

Declaration
protected virtual bool ProcessMnemonicChar(char charCode)
Parameters
System.Char charCode

Returns
System.Boolean

ProcessUnmappedItems(List<RadItem>)

Declaration
protected virtual int ProcessUnmappedItems(List<RadItem> childrenToBeMapped)
Parameters
System.Collections.Generic.List<RadItem> childrenToBeMapped

Returns
System.Int32

ResetKeyMap()

Declaration
protected virtual void ResetKeyMap()

ResetKeyMapInternal()

Declaration
protected virtual void ResetKeyMapInternal()

ReturnKeyMapFocus()

Declaration
protected bool ReturnKeyMapFocus()
Returns
System.Boolean

SetElementValue(RadElement, RadProperty, Object)

Declaration
public void SetElementValue(RadElement element, RadProperty dependencyProperty, object value)
Parameters
RadElement element

RadProperty dependencyProperty

System.Object value

SetInternalKeyMapFocus()

Declaration
protected virtual bool SetInternalKeyMapFocus()
Returns
System.Boolean

SetKeyMap()

Declaration
public virtual bool SetKeyMap()
Returns
System.Boolean

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.