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

适用于