Bagikan melalui


VisualInteractionSource.ScaleChainingMode Properti

Definisi

Properti ScaleChainingMode menentukan perilaku penautan untuk InteractionSource ke arah Skala. Ada tiga jenis InteractionChainingMode : Auto, Always, Never. Ketika penautan Skala diaktifkan, input akan mengalir ke VisualInteractionSource leluhur terdekat setiap kali interaksi (seperti panning) jika tidak akan mengambil posisi InteractionTracker melewati posisi Skala minimum atau maksimum.

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

Nilai Properti

Mode penautan untuk sumbu skala.

Contoh

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

Berlaku untuk