UIElement.ManipulationInertiaStarting 事件

定義

在操作和慣性開始的時候,只要輸入裝置不與 UIElement 物件接觸便發生。

public:
 virtual event ManipulationInertiaStartingEventHandler ^ ManipulationInertiaStarting;
// Register
event_token ManipulationInertiaStarting(ManipulationInertiaStartingEventHandler const& handler) const;

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

// Revoke with event_revoker
UIElement::ManipulationInertiaStarting_revoker ManipulationInertiaStarting(auto_revoke_t, ManipulationInertiaStartingEventHandler const& handler) const;
public event ManipulationInertiaStartingEventHandler ManipulationInertiaStarting;
function onManipulationInertiaStarting(eventArgs) { /* Your code */ }
uIElement.addEventListener("manipulationinertiastarting", onManipulationInertiaStarting);
uIElement.removeEventListener("manipulationinertiastarting", onManipulationInertiaStarting);
- or -
uIElement.onmanipulationinertiastarting = onManipulationInertiaStarting;
Public Custom Event ManipulationInertiaStarting As ManipulationInertiaStartingEventHandler 
<uiElement ManipulationInertiaStarting="eventhandler"/>

事件類型

備註

如需自訂控制項和互動體驗,請參閱 GestureRecognizer.ManipulationInertiaStarting

元素必須具有或 System 以外的 NoneManipulationMode值,才能成為操作事件來源。 的 ManipulationMode 預設值是 System ,可讓內建控制項邏輯處理操作,但不允許應用程式程式碼處理操作事件。 如果您想要處理操作,請將 設定 ManipulationModeAll 或特定的 ManipulationModes 值。 如需詳細資訊,請參閱 ManipulationMode

ManipulationInertiaStarting 是路由事件。 如果事件因為未處理而允許反升至父元素,則即使 ManipulationModeNoneSystem 父元素,也可以處理父元素上的事件。 如需路由事件概念的詳細資訊,請參閱 事件和路由事件概觀

對於觸控動作以及因為觸控動作而引發的互動特定或操作事件,元素必須具有點擊測試可見性,才能成為事件來源並引發與動作相關聯的事件。 UIElement.Visibility 必須是 Visible。 衍生類型的其他屬性也會影響點擊測試可見度。 如需詳細資訊,請參閱事件與路由事件概觀

ManipulationInertiaStarting 支援將事件處理常式附加至將叫用的路由的能力,即使事件的事件資料標示為 Handled 也一樣。 請參閱 AddHandler

適用於

另請參閱