VisualInteractionSource.ScaleChainingMode 属性

定义

ScaleChainingMode 属性定义 Scale 方向上 InteractionSource 的链接行为。 有三种类型的 InteractionChainingMode s:Auto、Always、Never。 启用缩放链接后,每当交互 ((如平移) )会使 InteractionTracker 的位置超过其最小或最大刻度位置时,输入将流向最近的上级 VisualInteractionSource

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

属性值

刻度轴的链式模式。

示例

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

适用于