SettingsPane.CommandsRequested SettingsPane.CommandsRequested SettingsPane.CommandsRequested SettingsPane.CommandsRequested SettingsPane.CommandsRequested Event

Definition

Note

SettingsPane is deprecated, and might not work on all versions of Windows 10. Instead of using a SettingsPane, integrate settings options into the app experience. For more info, see Guidelines for app settings.

Occurs when the user opens the settings pane. Listening for this event lets the app initialize the setting commands and pause its UI until the user closes the pane.

During this event, append your SettingsCommand objects to the available ApplicationCommands vector to make them available to the SettingsPane UI.

public : event TypedEventHandler<SettingsPane, SettingsPaneCommandsRequestedEventArgs> CommandsRequested
// Register
event_token CommandsRequested(TypedEventHandler<SettingsPane, SettingsPaneCommandsRequestedEventArgs> const& handler) const;

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

// Revoke with event_revoker
CommandsRequested_revoker CommandsRequested(auto_revoke_t, TypedEventHandler<SettingsPane, SettingsPaneCommandsRequestedEventArgs> const& handler) const;
public event TypedEventHandler<SettingsPane, SettingsPaneCommandsRequestedEventArgs> CommandsRequested
Public Event CommandsRequested As TypedEventHandler (Of SettingsPane, SettingsPaneCommandsRequestedEventArgs)
function onCommandsRequested(eventArgs){/* Your code */}


settingsPane.addEventListener("commandsrequested", onCommandsRequested);
settingsPane.removeEventListener("commandsrequested", onCommandsRequested);