Share via


SettingsPane.GetForCurrentView Methode

Definition

Hinweis

SettingsPane ist veraltet und funktioniert möglicherweise nicht in allen Versionen von Windows 10. Anstatt einen SettingsPane-Wert zu verwenden, integrieren Sie Einstellungsoptionen in die App-Benutzeroberfläche. Weitere Informationen finden Sie unter Richtlinien für App-Einstellungen.

Ruft ein SettingsPane-Objekt ab, das der aktuellen App-Ansicht (also mit CoreWindow) zugeordnet ist.

public:
 static SettingsPane ^ GetForCurrentView();
/// [Windows.Foundation.Metadata.Deprecated("SettingsPane is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.UI.ApplicationSettings.ApplicationsSettingsContract)]
 static SettingsPane GetForCurrentView();
/// [Windows.Foundation.Metadata.Deprecated("SettingsPane is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.UI.ApplicationSettings.ApplicationsSettingsContract")]
 static SettingsPane GetForCurrentView();
[Windows.Foundation.Metadata.Deprecated("SettingsPane is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.UI.ApplicationSettings.ApplicationsSettingsContract))]
public static SettingsPane GetForCurrentView();
[Windows.Foundation.Metadata.Deprecated("SettingsPane is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.UI.ApplicationSettings.ApplicationsSettingsContract")]
public static SettingsPane GetForCurrentView();
function getForCurrentView()
Public Shared Function GetForCurrentView () As SettingsPane

Gibt zurück

Der Einstellungsbereich.

Attribute

Hinweise

Wenn Sie eine App mit XAML erstellen, sollten Sie OnWindowCreated in App.xaml.cs/vb/cpp überschreiben, um das CommandsRequested-Ereignis dort zu registrieren.

Gilt für: