Expand description
Microsoft.UI.Composition.Interactions: interaction trackers and the
visual interaction sources that drive them with input.
An InteractionTracker holds a position and a scale. Input redirected
by a VisualInteractionSource moves them while interacting, inertia
(with its decay rates and inertia modifiers) carries them to rest after a
release, and requests (try_update_*) move them from code. Expression
animations reference the tracker to move visuals with it.
The tracker runs on the UI thread and ticks with the animation frames of
the media context; see the deviations of docs/porting/winui-composition.md.
Structs§
- Composition
Interaction Source Collection - The sources of a tracker (
CompositionInteractionSourceCollection). - Interaction
Source Configuration - Which axes the redirected mouse wheel drives
(
InteractionSourceConfiguration, thePointerWheelConfigof a source). - Interaction
Tracker - A position and a scale driven by input, inertia and requests
(
Microsoft.UI.Composition.Interactions.InteractionTracker). - Interaction
Tracker Custom Animation State Entered Args - The arguments of
IInteractionTrackerOwner::custom_animation_state_entered. - Interaction
Tracker Idle State Entered Args - The arguments of
IInteractionTrackerOwner::idle_state_entered. - Interaction
Tracker Inertia Motion - An inertia modifier that replaces the motion of the inertia
(
InteractionTrackerInertiaMotion): whenConditionistrue, the value of the axis is the value ofMotion, evaluated every frame of the inertia, until it stops changing. - Interaction
Tracker Inertia Resting Value - An inertia modifier that changes where the inertia comes to rest
(
InteractionTrackerInertiaRestingValue): whenConditionistrue, the axis comes to rest at the value ofRestingValue, evaluated once when the inertia starts. - Interaction
Tracker Inertia State Entered Args - The arguments of
IInteractionTrackerOwner::inertia_state_entered. - Interaction
Tracker Interacting State Entered Args - The arguments of
IInteractionTrackerOwner::interacting_state_entered. - Interaction
Tracker Request Ignored Args - The arguments of
IInteractionTrackerOwner::request_ignored. - Interaction
Tracker Values Changed Args - The arguments of
IInteractionTrackerOwner::values_changed. - Visual
Interaction Source - The input of the element of a visual, redirected to the interaction
trackers the source is added to
(
Microsoft.UI.Composition.Interactions.VisualInteractionSource).
Enums§
- Interaction
Chaining Mode - How the manipulations of nested sources chain
(
InteractionChainingMode). - Interaction
Source Mode - How the input of a source drives an axis (
InteractionSourceMode). - Interaction
Source Redirection Mode - Whether a kind of redirected input drives an axis
(
InteractionSourceRedirectionMode). - Interaction
Tracker Animation - A custom animation of the position or of the scale of a tracker: the
CompositionAnimationthatTryUpdatePositionWithAnimationandTryUpdateScaleWithAnimationtake. - Interaction
Tracker Clamping Option - Whether a position request is clamped to the boundaries
(
InteractionTrackerClampingOption). - Interaction
Tracker Inertia Modifier - A modifier of the inertia of one axis of an interaction tracker
(
InteractionTrackerInertiaModifier): whatconfigure_position_x_inertia_modifiersand its siblings take. - Interaction
Tracker State - The states of an
InteractionTracker. - Visual
Interaction Source Redirection Mode - Which input other than touch is redirected to a source without
TryRedirectForManipulation(VisualInteractionSourceRedirectionMode).
Constants§
- DEFAULT_
INERTIA_ DECAY_ RATE - The decay rate of the position and of the scale while
PositionInertiaDecayRateandScaleInertiaDecayRateare not set.
Traits§
- IInteraction
Tracker Owner - The callbacks of an
InteractionTracker(IInteractionTrackerOwner).