Share via


InputPane.Hiding イベント

定義

入力ウィンドウが表示外にスライドし始めると発生します。

// Register
event_token Hiding(TypedEventHandler<InputPane, InputPaneVisibilityEventArgs const&> const& handler) const;

// Revoke with event_token
void Hiding(event_token const* cookie) const;

// Revoke with event_revoker
InputPane::Hiding_revoker Hiding(auto_revoke_t, TypedEventHandler<InputPane, InputPaneVisibilityEventArgs const&> const& handler) const;
public event TypedEventHandler<InputPane,InputPaneVisibilityEventArgs> Hiding;
function onHiding(eventArgs) { /* Your code */ }
inputPane.addEventListener("hiding", onHiding);
inputPane.removeEventListener("hiding", onHiding);
- or -
inputPane.onhiding = onHiding;
Public Custom Event Hiding As TypedEventHandler(Of InputPane, InputPaneVisibilityEventArgs) 

イベントの種類

注釈

システムは、 GetForCurrentView メソッドを呼び出したときに表示されたアプリケーション ウィンドウに入力ウィンドウを関連付けます。 これは、新しい入力ウィンドウ オブジェクトを作成し、新しいウィンドウを作成するたびに Showing イベントに登録する必要があることを意味します。 "非表示" イベントを使用すると、 Showing イベント中にアプリのレイアウトに加えた変更を元に戻すことができます。

システムがイベント ハンドラーを呼び出しても、入力ウィンドウが表示から外れ始めていません。 イベント ハンドラーが戻った後、入力ウィンドウが表示されなできるようになります。 イベント ハンドラーが (200 ミリ秒以内に) 十分に迅速に応答しない場合、入力ウィンドウは、イベント ハンドラーが返されるのを待たずに表示され始めます。

入力ウィンドウ用のカスタム ユーザー エクスペリエンスを作成する場合は、必ずイベント引数に EnsuredFocusedElementInView プロパティを設定して、入力ウィンドウ イベントを処理したことをアプリ フレームワークに通知します。この操作は試みないでください。

複数のアニメーションとコンテンツのサイズ変更が同時に行われる可能性があるため、入力ウィンドウが非表示になっている間の作業量を最小限に抑える必要があります。 この期間中に実行する作業が多いほど、システム全体のパフォーマンスに影響し、ユーザー エクスペリエンスが低下します。

適用対象

こちらもご覧ください