Routes mouse input for RadSyntaxEditor, separating editor content from its scrollbars and zoom selector.
Definition
Namespace:Telerik.WinControls.UI.SyntaxEditor
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class RadSyntaxEditorComponentInputBehavior : ComponentInputBehavior, IDisposable
Inheritance: objectComponentBehaviorComponentInputBehaviorRadSyntaxEditorComponentInputBehavior
Implements:
Inherited Members
Constructors
Initializes input routing for the owning control tree.
public RadSyntaxEditorComponentInputBehavior(IComponentTreeHandler owner)
The component tree that receives input. Special scrollbar and zoom hit testing is applied when it belongs to a RadSyntaxEditor.
Methods
Determines whether the pointer is within the zoom selector's control bounds.
protected virtual bool IsMouseOverArrowButton(MouseEventArgs e)
Mouse input containing the pointer location.
Returns:true when the pointer is over the zoom selector.
Determines whether the pointer is within either scrollbar's control bounds.
protected virtual bool IsMouseOverScrollbar(MouseEventArgs e)
Mouse input containing the pointer location.
Returns:true when the pointer is over the horizontal or vertical scrollbar.
Routes clicks on editor elements through the base behavior and dispatches clicks outside the element tree to the hit or captured element.
Routes double-clicks on editor elements through the base behavior and dispatches double-clicks outside the element tree to the hit or captured element.
Preserves element-tree handling for hits on editor elements and marks scrollbar hits outside that tree as handled.
public override bool OnMouseDown(MouseEventArgs e)
Mouse input containing the pointer location.
Returns:true if the base behavior or scrollbar handling consumes the input.
Overrides:
Keeps scrollbar movement outside the editor element tree from being treated as editor-content movement.
public override bool OnMouseMove(MouseEventArgs e)
Mouse input containing the pointer location.
Returns:true if the base behavior or scrollbar handling consumes the input.
Overrides:
Prevents scrollbar release input outside the editor element tree from reaching editor content.
public override bool OnMouseUp(MouseEventArgs e)
Mouse input containing the pointer location.
Returns:true if the base behavior or scrollbar handling consumes the input.
Overrides:
Routes the wheel event to the focused element, or to the selected element when none is focused.
public override bool OnMouseWheel(MouseEventArgs e)
The mouse-wheel event data.
Returns:false so the control continues its standard event processing.
Overrides: