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.

Definition

Namespace:Telerik.Windows.Controls.Rating

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class InteractionHelper

Inheritance: objectInteractionHelper

Constructors

InteractionHelper(Control)

Initializes a new instance of the InteractionHelper class.

Declaration

cs-api-definition
public InteractionHelper(Control control)

Parameters

control

Control

The control.

Properties

Control

Gets or sets the control.

Declaration

cs-api-definition
public Control Control { get; }

Property Value

Control

The control.

IsMouseOver

Gets or sets a value indicating whether this instance is mouse over.

Declaration

cs-api-definition
public bool IsMouseOver { get; }

Property Value

bool

IsReadOnly

Gets or sets a value indicating whether this instance is read only.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Methods

AllowMouseEnter(MouseEventArgs)

Allows the mouse enter.

Declaration

cs-api-definition
public bool AllowMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

AllowMouseLeave(MouseEventArgs)

Allows the mouse leave.

Declaration

cs-api-definition
public bool AllowMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

AllowMouseLeftButtonDown(MouseButtonEventArgs)

Allows the mouse left button down.

Declaration

cs-api-definition
public bool AllowMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The MouseButtonEventArgs instance containing the event data.

Returns

bool

AllowMouseLeftButtonUp(MouseButtonEventArgs)

Allows the mouse left button up.

Declaration

cs-api-definition
public bool AllowMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The MouseButtonEventArgs instance containing the event data.

Returns

bool

OnApplyTemplateBase()

Called when [apply template base].

Declaration

cs-api-definition
public void OnApplyTemplateBase()

OnIsReadOnlyChanged(bool)

Called when [is read only changed].

Declaration

cs-api-definition
public void OnIsReadOnlyChanged(bool value)

Parameters

value

bool

OnMouseEnterBase()

Called when [mouse enter base].

Declaration

cs-api-definition
public void OnMouseEnterBase()

OnMouseLeaveBase()

Called when [mouse leave base].

Declaration

cs-api-definition
public void OnMouseLeaveBase()

OnMouseLeftButtonDownBase()

Called when [mouse left button down base].

Declaration

cs-api-definition
public void OnMouseLeftButtonDownBase()

OnMouseLeftButtonUpBase()

Called when [mouse left button up base].

Declaration

cs-api-definition
public void OnMouseLeftButtonUpBase()

UpdateVisualStateBase(bool)

Updates the visual state base.

Declaration

cs-api-definition
public void UpdateVisualStateBase(bool useTransitions)

Parameters

useTransitions

bool