Windows Dev Center

SettingsPane.GetForCurrentView | getForCurrentView method

[SettingsPane may be altered or unavailable for releases after Windows 10. Instead of using a SettingsPane, integrate settings options into the app experience. For more info, see Guidelines for app settings.]

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 (Windows 10 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 (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

End of client support

Windows 10

End of phone support

Windows 10 Mobile

End of server support

Windows Server Technical Preview

Namespace

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

Metadata

Windows.winmd

See also

SettingsPane

 

 

Show:
© 2015 Microsoft