ClassComponentInputBehavior
Extends ComponentBehavior to provide comprehensive input handling capabilities including mouse, keyboard, and gesture input processing for RadControl components.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class ComponentInputBehavior : ComponentBehavior, IDisposable
Inheritance: objectComponentBehaviorComponentInputBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
ComponentInputBehavior(IComponentTreeHandler)
Initializes a new instance of the ComponentInputBehavior class for the specified component tree handler.
Declaration
public ComponentInputBehavior(IComponentTreeHandler owner)
Parameters
owner
The IComponentTreeHandler that owns this input behavior instance.
Remarks
The constructor calls the base ComponentBehavior constructor and initializes input-specific settings. By default, it enables item tooltips based on the ShowItemToolTips setting.
This constructor establishes the input handling system for the component, preparing it to process mouse, keyboard, and gesture input events and route them appropriately through the element tree.
Properties
Enable
Gets or sets a value indicating whether input processing is enabled for this component.
Declaration
[Browsable(false)]
public bool Enable { get; set; }
Property Value
true if input events should be processed; otherwise, false. The default is true.
Remarks
When this property is set to false, the component will not process mouse, keyboard,
or other input events. This can be useful for temporarily disabling interaction during
certain operations or states.
MouseHoverTimer
Gets the mouse hover timer used to detect and handle mouse hover events.
Declaration
protected MouseHoverTimer MouseHoverTimer { get; }
Property Value
A MouseHoverTimer instance used for hover detection and timing.
Remarks
This timer is used internally to manage mouse hover detection, determining when the mouse has remained stationary over an element long enough to trigger hover-related events and visual feedback such as tooltips.
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
HandleMouseLeave(EventArgs, RadElement)
Declaration
protected void HandleMouseLeave(EventArgs e, RadElement elementUnderMouse)
Parameters
e
elementUnderMouse
OnGesture(GestureEventArgs)
Declaration
protected virtual void OnGesture(GestureEventArgs e)
Parameters
e
OnHoveredElementChanged(HoveredElementChangedEventArgs)
Declaration
protected virtual void OnHoveredElementChanged(HoveredElementChangedEventArgs e)
Parameters
e
OnMouseCaptureChanged(EventArgs)
Declaration
public virtual void OnMouseCaptureChanged(EventArgs e)
Parameters
e
OnMouseDown(MouseEventArgs)
Declaration
public virtual bool OnMouseDown(MouseEventArgs e)
Parameters
e
Returns
OnMouseMove(MouseEventArgs)
Declaration
public virtual bool OnMouseMove(MouseEventArgs e)
Parameters
e
Returns
OnMouseUp(MouseEventArgs)
Declaration
public virtual bool OnMouseUp(MouseEventArgs e)
Parameters
e
Returns
OnMouseWheel(MouseEventArgs)
Declaration
public virtual bool OnMouseWheel(MouseEventArgs e)
Parameters
e
Returns
Events
HoveredElementChanged
Fires when hovered element is changed.
Declaration
public event HoveredElementChangedEventHandler HoveredElementChanged
Event Value