Share via


UINavigationController.UINavigationControllerAdded Événement

Définition

Signale quand un nouveau contrôleur de navigation de l’interface utilisateur est connecté.

// 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) 

Type d'événement

Remarques

Pour identifier les contrôleurs qui ont déjà été ajoutés, vous interrogez la liste des contrôleurs connectés à l’aide d’UINavigationController.UINavigationControllers.

S’applique à