AccountsSettingsPane.AccountCommandsRequested Событие

Определение

Происходит при открытии пользователем области учетных записей. Обработка этого события позволяет приложению инициализировать команды учетных записей и приостанавливать пользовательский интерфейс, пока пользователь не закроет панель.

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

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

// Revoke with event_revoker
AccountsSettingsPane::AccountCommandsRequested_revoker AccountCommandsRequested(auto_revoke_t, TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<AccountsSettingsPane,AccountsSettingsPaneCommandsRequestedEventArgs> AccountCommandsRequested;
function onAccountCommandsRequested(eventArgs) { /* Your code */ }
accountsSettingsPane.addEventListener("accountcommandsrequested", onAccountCommandsRequested);
accountsSettingsPane.removeEventListener("accountcommandsrequested", onAccountCommandsRequested);
- or -
accountsSettingsPane.onaccountcommandsrequested = onAccountCommandsRequested;
Public Custom Event AccountCommandsRequested As TypedEventHandler(Of AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs) 

Тип события

Комментарии

Когда приложение обрабатывает это событие, заполните предоставленные AccountsSettingsPaneCommandsRequestedEventArgsсвоими объектами SettingsCommand , своими объектами CredentialCommand и Объектами WebAccountCommand , чтобы сделать их доступными для пользовательского интерфейса AccountsSettingsPane.

Если при изменении области возникает ошибка, вызовы функции Показать завершатся сбоем без уведомления и панель не будет отображаться.

Применяется к