AccountsSettingsPane.AccountCommandsRequested AccountsSettingsPane.AccountCommandsRequested AccountsSettingsPane.AccountCommandsRequested AccountsSettingsPane.AccountCommandsRequested AccountsSettingsPane.AccountCommandsRequested Event

Definition

Occurs when the user opens the accounts pane. Handling this event lets the app initialize the accounts commands and pause its UI until the user closes the pane.

public : event TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs> AccountCommandsRequested
// Register
event_token AccountCommandsRequested(TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs> const& handler) const;

// Revoke with event_token
void AccountCommandsRequested(event_token const& cookie) const;

// Revoke with event_revoker
AccountCommandsRequested_revoker AccountCommandsRequested(auto_revoke_t, TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs> const& handler) const;
public event TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs> AccountCommandsRequested
Public Event AccountCommandsRequested As TypedEventHandler (Of AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs)
function onAccountCommandsRequested(eventArgs){/* Your code */}


accountsSettingsPane.addEventListener("accountcommandsrequested", onAccountCommandsRequested);
accountsSettingsPane.removeEventListener("accountcommandsrequested", onAccountCommandsRequested);

Remarks

When your app handles this event, populate the provided AccountsSettingsPaneCommandsRequestedEventArgs with your SettingsCommand objects, your CredentialCommand objects, and your WebAccountCommand objects to make them available to the AccountsSettingsPane UI.

If an error occurs while modifying the pane, calls to Show will fail silently and the pane will not appear.