Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SettingsPane.CommandsRequested | commandsrequested event

Applies to Windows only

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.

Syntax


function onCommandsRequested(eventArgs) { /* Your code */ }
 
// addEventListener syntax
settingsPane.addEventListener("commandsrequested", onCommandsRequested);
settingsPane.removeEventListener("commandsrequested", onCommandsRequested);
 
- or -

settingsPane.oncommandsrequested = onCommandsRequested;


Event information

Delegate TypedEventHandler<SettingsPane, SettingsPaneCommandsRequestedEventArgs>

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.ApplicationSettings
Windows::UI::ApplicationSettings [C++]

Metadata

Windows.winmd

See also

SettingsPane

 

 

Show:
© 2014 Microsoft