InkInputProcessingConfiguration.RightDragAction 属性      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
 property InkInputRightDragAction RightDragAction { InkInputRightDragAction get(); void set(InkInputRightDragAction value); };InkInputRightDragAction RightDragAction();
void RightDragAction(InkInputRightDragAction value);public InkInputRightDragAction RightDragAction { get; set; }var inkInputRightDragAction = inkInputProcessingConfiguration.rightDragAction;
inkInputProcessingConfiguration.rightDragAction = inkInputRightDragAction;Public Property RightDragAction As InkInputRightDragAction属性值
使用辅助提供项进行修改时的输入行为。
示例
在这里,我们将 RightDragAction 设置为 LeaveUnprocessed ,并为指针输入声明 UnprocessedInput 事件侦听器。
inkCanvas.InkPresenter.InputProcessingConfiguration.RightDragAction = 
  InkInputRightDragAction.LeaveUnprocessed;
inkCanvas.InkPresenter.UnprocessedInput.PointerPressed += 
  UnprocessedInput_PointerPressed;
inkCanvas.InkPresenter.UnprocessedInput.PointerMoved += 
  UnprocessedInput_PointerMoved;
inkCanvas.InkPresenter.UnprocessedInput.PointerReleased += 
  UnprocessedInput_PointerReleased;
此处,我们定义指针输入的自定义事件处理程序。 处理程序用于实现墨迹笔划选择。
private void UnprocessedInput_PointerPressed(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args)
{
  lasso = new Polyline()
  {
    Stroke = new SolidColorBrush(Windows.UI.Colors.Blue),
    StrokeThickness = 1,
    StrokeDashArray = new DoubleCollection() {5, 2},
  };
  lasso.Points.Add(args.CurrentPoint.RawPosition);
  selectionCanvas.Children.Add(lasso);
}
private void UnprocessedInput_PointerMoved(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args)
{
  lasso.Points.Add(args.CurrentPoint.RawPosition);
}
private void UnprocessedInput_PointerReleased(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args)
{
  lasso.Points.Add(args.CurrentPoint.RawPosition);
  boundingRect = inkCanvas.InkPresenter.StrokeContainer.SelectWithPolyLine(lasso.Points);
  DrawBoundingRect();
}
注解
若要将输入作为 UnprocessedInput 传递到应用进行自定义处理,请将 RightDragAction 设置为 LeaveUnprocessed。