Share via


SettingsPane.GetForCurrentView Méthode

Définition

Notes

SettingsPane est déconseillé et peut ne pas fonctionner sur toutes les versions de Windows 10. Au lieu d’utiliser un ParamètresPane, intégrez les options de paramètres à l’expérience de l’application. Pour plus d’informations, consultez Recommandations pour les paramètres d’application.

Obtient un objet SettingsPane associé à la vue d’application actuelle (c’est-à-dire à CoreWindow).

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

Retours

Volet paramètres.

Attributs

Remarques

Si vous créez une application avec XAML, vous devez remplacer OnWindowCreated dans App.xaml.cs/vb/cpp pour y inscrire l’événement CommandsRequested .

S’applique à