UIElement.CancelDirectManipulations メソッド

定義

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

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

戻り値

Boolean

bool

trueScrollViewer の親が存在し、値を設定すると、パン/ズーム 操作が取り消されます。 false メソッドを呼び出しても何も行われません。

注釈

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

適用対象

こちらもご覧ください