Jaa


VisualInteractionSource.ScaleChainingMode Property

Definition

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

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

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

Property Value

Chaining mode for the scale axis.

Examples

void SetupInteractionSource(ContainerVisual container, InteractionTracker 	tracker)
{
  // Setup the Interaction Source
  _interactionSource = VisualInteractionSource.Create(container);
  // Auto chaining for Scale
  _interactionSource.ScaleChainingMode = InteractionChainingMode.Auto;    
  // Attach the VisualInteractionSource to InteractionTracker
  tracker.InteractionSources.Add(_interactionSource);
}

Applies to