UINavigationController.UINavigationControllerAdded 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
連線新的 UI 流覽控制器時發出訊號。
// Register
static event_token UINavigationControllerAdded(EventHandler<UINavigationController> const& handler) const;
// Revoke with event_token
static void UINavigationControllerAdded(event_token const* cookie) const;
// Revoke with event_revoker
static UINavigationController::UINavigationControllerAdded_revoker UINavigationControllerAdded(auto_revoke_t, EventHandler<UINavigationController> const& handler) const;
public static event System.EventHandler<UINavigationController> UINavigationControllerAdded;
function onUINavigationControllerAdded(eventArgs) { /* Your code */ }
Windows.Gaming.Input.UINavigationController.addEventListener("uinavigationcontrolleradded", onUINavigationControllerAdded);
Windows.Gaming.Input.UINavigationController.removeEventListener("uinavigationcontrolleradded", onUINavigationControllerAdded);
- or -
Windows.Gaming.Input.UINavigationController.onuinavigationcontrolleradded = onUINavigationControllerAdded;
Public Shared Custom Event UINavigationControllerAdded As EventHandler(Of UINavigationController)
事件類型
備註
若要識別已新增的控制器,您可以使用 UINavigationController.UINavigationControllers來查詢連線控制器清單。