Class InteractionHelper
The InteractionHelper provides controls with support for all of the common interactions like mouse movement, mouse clicks, etc., and also incorporates proper event semantics when the control is disabled.
Inheritance
Namespace: Telerik.Windows.Controls.Rating
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public class InteractionHelper : Object
Constructors
InteractionHelper(Control)
Initializes a new instance of the InteractionHelper class.
Declaration
public InteractionHelper(Control control)
Parameters
System.Windows.Controls.Control
control
The control. |
Properties
Control
Gets or sets the control.
Declaration
public Control Control { get; }
Property Value
System.Windows.Controls.Control
The control. |
IsMouseOver
Gets or sets a value indicating whether this instance is mouse over.
Declaration
public bool IsMouseOver { get; }
Property Value
System.Boolean
|
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Methods
AllowMouseEnter(MouseEventArgs)
Allows the mouse enter.
Declaration
public bool AllowMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
AllowMouseLeave(MouseEventArgs)
Allows the mouse leave.
Declaration
public bool AllowMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
AllowMouseLeftButtonDown(MouseButtonEventArgs)
Allows the mouse left button down.
Declaration
public bool AllowMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
The System.Windows.Input.MouseButtonEventArgs instance containing the event data. |
Returns
System.Boolean
|
AllowMouseLeftButtonUp(MouseButtonEventArgs)
Allows the mouse left button up.
Declaration
public bool AllowMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
The System.Windows.Input.MouseButtonEventArgs instance containing the event data. |
Returns
System.Boolean
|
OnApplyTemplateBase()
Called when [apply template base].
Declaration
public void OnApplyTemplateBase()
OnIsReadOnlyChanged(Boolean)
Called when [is read only changed].
Declaration
public void OnIsReadOnlyChanged(bool value)
Parameters
System.Boolean
value
|
OnMouseEnterBase()
Called when [mouse enter base].
Declaration
public void OnMouseEnterBase()
OnMouseLeaveBase()
Called when [mouse leave base].
Declaration
public void OnMouseLeaveBase()
OnMouseLeftButtonDownBase()
Called when [mouse left button down base].
Declaration
public void OnMouseLeftButtonDownBase()
OnMouseLeftButtonUpBase()
Called when [mouse left button up base].
Declaration
public void OnMouseLeftButtonUpBase()
UpdateVisualStateBase(Boolean)
Updates the visual state base.
Declaration
public void UpdateVisualStateBase(bool useTransitions)
Parameters
System.Boolean
useTransitions
|