UIElement.CancelDirectManipulations メソッド

定義

現在の UIElement を含む ScrollViewer 親に対して、進行中の直接操作処理 (システム定義のパン/ズーム) を取り消します。

public:
 virtual bool CancelDirectManipulations() = CancelDirectManipulations;
bool CancelDirectManipulations();
public bool CancelDirectManipulations();
function cancelDirectManipulations()
Public Function CancelDirectManipulations () As Boolean

戻り値

Boolean

bool

ScrollViewer 親が存在し、値を設定するとパン/ズーム アクションが取り消された場合は trueメソッド を呼び出してもアクションが発生しない場合は false。

注釈

ターゲット UIElement が下位レベルのポインター イベント (PointerPressedPointerMoved など) を介して進行中の操作を処理できるようにする場合は、このメソッドを呼び出す場合があります。 既定では、ターゲット UIElementScrollViewer に含まれている場合、 ScrollViewer の親はシステム レベルで翻訳操作を直接処理し、パンまたはズームとして扱います。 ScrollViewer 親による操作処理により、含まれている UIElement がポインター イベントを受信できなくなります (処理済みとしてマークされます)。 CancelDirectManipulations を呼び出して、進行中の操作に対するこの既定の動作をオーバーライドすると、個々の UIElement ターゲットの非システム レベルで操作を処理できるようになります。

適用対象

こちらもご覧ください