Windows Dev Center

SettingsPane.GetForCurrentView | getForCurrentView method

Gets a SettingsPane object that is associated with the current app view (that is, with CoreWindow).

Syntax


var settingsPane = Windows.UI.ApplicationSettings.SettingsPane.getForCurrentView();

Parameters

This method has no parameters.

Return value

Type: SettingsPane

The settings pane.

Remarks

If you're creating an app with XAML, you should override OnWindowCreated in App.xaml.cs/vb/cpp to register the CommandsRequested event there.

Requirements (device family)

Device family

Desktop

API contract

Windows.UI.ApplicationSettings.ApplicationsSettingsContract, introduced version 1.0

Namespace

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

Metadata

Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd

Requirements (operating system)

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:
© 2015 Microsoft