Class
InteractionEffectBase

Represents a base class for all interaction effects that can be applied to an element.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class InteractionEffectBase : DependencyObject

Inheritance: objectInteractionEffectBase

Derived Classes: TiltInteractionEffect

Constructors

InteractionEffectBase()

Declaration

cs-api-definition
protected InteractionEffectBase()

Methods

CanStartEffect(FrameworkElement, PointerRoutedEventArgs)

Determines whether an effect can be started on the specified target element.

Declaration

cs-api-definition
protected virtual bool CanStartEffect(FrameworkElement targetElement, PointerRoutedEventArgs args)

Parameters

targetElement

FrameworkElement

The target element.

args

PointerRoutedEventArgs

The PointerRoutedEventArgs instance containing the event data.

Returns

bool

true if an effect can be started on the specified target element; otherwise, false.

CancelEffect()

Cancels the current interaction effect.

Declaration

cs-api-definition
public virtual void CancelEffect()

OnStartEffect(FrameworkElement, PointerRoutedEventArgs)

Called when the interaction effect is started.

Declaration

cs-api-definition
protected abstract void OnStartEffect(FrameworkElement targetElement, PointerRoutedEventArgs args)

Parameters

targetElement

FrameworkElement

The target element.

args

PointerRoutedEventArgs

The PointerRoutedEventArgs instance containing the event data.