Class
TiltInteractionEffect

Represents a tilt interaction effect. This effect applies plane projection to the element the user is currently interacting with to simulate pressure being applied on the element at the interaction point.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class TiltInteractionEffect : InteractionEffectBase

Inheritance: objectInteractionEffectBaseTiltInteractionEffect

Constructors

TiltInteractionEffect()

Initializes a new instance of the TiltInteractionEffect class.

Declaration

cs-api-definition
public TiltInteractionEffect()

Fields

DedicatedTiltTargetProperty

Identifies the DedicatedTiltTarget dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DedicatedTiltTargetProperty

Field Value

DependencyProperty

MaxRotationAngleProperty

Identifies the MaxRotationAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxRotationAngleProperty

Field Value

DependencyProperty

MaxZOffsetProperty

Identifies the MaxZOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxZOffsetProperty

Field Value

DependencyProperty

Properties

MaxRotationAngle

Gets or sets the max rotation angle.

Declaration

cs-api-definition
public double MaxRotationAngle { get; set; }

Property Value

double

The max rotation angle.

MaxZOffset

Gets or sets the max Z offset.

Declaration

cs-api-definition
public double MaxZOffset { get; set; }

Property Value

double

The max Z offset.

Methods

CanStartEffect(FrameworkElement, PointerRoutedEventArgs)

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

Declaration

cs-api-definition
protected override 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.

Overrides InteractionEffectBase.CanStartEffect(FrameworkElement, PointerRoutedEventArgs)

CancelEffect()

Cancels the interaction effect applied to the given element.

Declaration

cs-api-definition
public override void CancelEffect()

Overrides InteractionEffectBase.CancelEffect()

GetDedicatedTiltTarget(DependencyObject)

Gets the defined DedicatedTiltTarget from the given FrameworkElement.

Declaration

cs-api-definition
public static FrameworkElement GetDedicatedTiltTarget(DependencyObject element)

Parameters

element

DependencyObject

Returns

FrameworkElement

OnStartEffect(FrameworkElement, PointerRoutedEventArgs)

Called when manipulation has been started on an element subscribed for an interaction effect.

Declaration

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

Parameters

targetElement

FrameworkElement

args

PointerRoutedEventArgs

Overrides InteractionEffectBase.OnStartEffect(FrameworkElement, PointerRoutedEventArgs)

SetDedicatedTiltTarget(DependencyObject, object)

Sets the DedicatedTiltTarget attached property to the given FrameworkElement.

Declaration

cs-api-definition
public static void SetDedicatedTiltTarget(DependencyObject element, object value)

Parameters

element

DependencyObject

value

object