New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class InteractionHelper

Inheritance: objectInteractionHelper

Constructors

Initializes a new instance of the InteractionHelper class.

C#
public InteractionHelper(Control control)
Parameters:controlControl

The control.

Properties

Control

Control

Gets or sets the control.

C#
public Control Control { get; }
Property Value:

The control.

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

C#
public bool IsMouseOver { get; }

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

C#
public bool IsReadOnly { get; }

Methods

Allows the mouse enter.

C#
public bool AllowMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Allows the mouse leave.

C#
public bool AllowMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Allows the mouse left button down.

C#
public bool AllowMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs instance containing the event data.

Returns:

bool

Allows the mouse left button up.

C#
public bool AllowMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs instance containing the event data.

Returns:

bool

Called when [apply template base].

C#
public void OnApplyTemplateBase()

Called when [is read only changed].

C#
public void OnIsReadOnlyChanged(bool value)
Parameters:valuebool

Called when [mouse enter base].

C#
public void OnMouseEnterBase()

Called when [mouse leave base].

C#
public void OnMouseLeaveBase()

Called when [mouse left button down base].

C#
public void OnMouseLeftButtonDownBase()

Called when [mouse left button up base].

C#
public void OnMouseLeftButtonUpBase()

Updates the visual state base.

C#
public void UpdateVisualStateBase(bool useTransitions)
Parameters:useTransitionsbool