UINavigationController.UINavigationControllerRemoved 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 UI 导航控制器断开连接时发出信号。
// Register
static event_token UINavigationControllerRemoved(EventHandler<UINavigationController> const& handler) const;
// Revoke with event_token
static void UINavigationControllerRemoved(event_token const* cookie) const;
// Revoke with event_revoker
static UINavigationController::UINavigationControllerRemoved_revoker UINavigationControllerRemoved(auto_revoke_t, EventHandler<UINavigationController> const& handler) const;
public static event System.EventHandler<UINavigationController> UINavigationControllerRemoved;
function onUINavigationControllerRemoved(eventArgs) { /* Your code */ }
Windows.Gaming.Input.UINavigationController.addEventListener("uinavigationcontrollerremoved", onUINavigationControllerRemoved);
Windows.Gaming.Input.UINavigationController.removeEventListener("uinavigationcontrollerremoved", onUINavigationControllerRemoved);
- or -
Windows.Gaming.Input.UINavigationController.onuinavigationcontrollerremoved = onUINavigationControllerRemoved;
Public Shared Custom Event UINavigationControllerRemoved As EventHandler(Of UINavigationController)