VisualInteractionSource.PositionYChainingMode Property

Definition

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.

public:
 property InteractionChainingMode PositionYChainingMode { InteractionChainingMode get(); void set(InteractionChainingMode value); };
InteractionChainingMode PositionYChainingMode();

void PositionYChainingMode(InteractionChainingMode value);
public InteractionChainingMode PositionYChainingMode { get; set; }
var interactionChainingMode = visualInteractionSource.positionYChainingMode;
visualInteractionSource.positionYChainingMode = interactionChainingMode;
Public Property PositionYChainingMode As InteractionChainingMode

Property Value

Chaining mode for the Y-axis.

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);
}

Applies to