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 查询连接的控制器列表。