Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.42 KB

visualinteractionsource_positionychainingmode.md

File metadata and controls

45 lines (32 loc) · 1.42 KB
-api-id -api-type
P:Windows.UI.Composition.Interactions.VisualInteractionSource.PositionYChainingMode
winrt property

Windows.UI.Composition.Interactions.VisualInteractionSource.PositionYChainingMode

-description

The PositionYChainingMode property defines the chaining behavior for an InteractionSource in the Y direction. There are three types of InteractionChainingMode s: Auto , Always , Never . When chaining in the Y direction is enabled, input will flow to the nearest ancestor’s VisualInteractionSource whenever the interaction (such as panning) would otherwise take InteractionTracker ’s position past its minimum or maximum Y position.

-property-value

Chaining mode for the Y-axis.

-remarks

-examples

void SetupInteractionSource(ContainerVisual container, InteractionTracker 	tracker)
{
  // Setup the Interaction Source
  _interactionSource = VisualInteractionSource.Create(container);
  // Enable chaining for the Y direction.
  _interactionSource.PositionYChainingMode = InteractionChainingMode.Always;
  // Attach the VisualInteractionSource to InteractionTracker
  tracker.InteractionSources.Add(_interactionSource);
}
          

-see-also