ClassTiltInteractionEffect
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:
public class TiltInteractionEffect : InteractionEffectBase
Inheritance: objectInteractionEffectBaseTiltInteractionEffect
Constructors
TiltInteractionEffect()
Initializes a new instance of the TiltInteractionEffect class.
Declaration
public TiltInteractionEffect()
Fields
DedicatedTiltTargetProperty
Identifies the DedicatedTiltTarget dependency property.
Declaration
public static readonly DependencyProperty DedicatedTiltTargetProperty
Field Value
DependencyProperty
MaxRotationAngleProperty
Identifies the MaxRotationAngle dependency property.
Declaration
public static readonly DependencyProperty MaxRotationAngleProperty
Field Value
DependencyProperty
MaxZOffsetProperty
Identifies the MaxZOffset dependency property.
Declaration
public static readonly DependencyProperty MaxZOffsetProperty
Field Value
DependencyProperty
Properties
MaxRotationAngle
Gets or sets the max rotation angle.
Declaration
public double MaxRotationAngle { get; set; }
Property Value
The max rotation angle.
MaxZOffset
Gets or sets the max Z offset.
Declaration
public double MaxZOffset { get; set; }
Property Value
The max Z offset.
Methods
CanStartEffect(FrameworkElement, PointerRoutedEventArgs)
Determines whether an effect can be started on the specified target element.
Declaration
protected override bool CanStartEffect(FrameworkElement targetElement, PointerRoutedEventArgs args)
Parameters
targetElement
FrameworkElement
The target element.
args
PointerRoutedEventArgs
The PointerRoutedEventArgs instance containing the event data.
Returns
true if an effect can be started on the specified target element; otherwise, false.
Overrides
CancelEffect()
Cancels the interaction effect applied to the given element.
Declaration
public override void CancelEffect()
Overrides
GetDedicatedTiltTarget(DependencyObject)
Gets the defined DedicatedTiltTarget from the given FrameworkElement.
Declaration
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
protected override void OnStartEffect(FrameworkElement targetElement, PointerRoutedEventArgs args)
Parameters
targetElement
FrameworkElement
args
PointerRoutedEventArgs
Overrides
SetDedicatedTiltTarget(DependencyObject, object)
Sets the DedicatedTiltTarget attached property to the given FrameworkElement.
Declaration
public static void SetDedicatedTiltTarget(DependencyObject element, object value)
Parameters
element
DependencyObject
value