SettingsPane.GetForCurrentView Método

Definición

Nota

SettingsPane está en desuso y es posible que no funcione en todas las versiones de Windows 10. En lugar de usar un panel de configuración, integre las opciones de configuración en la experiencia de la aplicación. Para obtener más información, consulta Directrices para la configuración de la aplicación.

Obtiene un objeto SettingsPane asociado a la vista de aplicación actual (es decir, con 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

Devoluciones

Panel de configuración.

Atributos

Comentarios

Si vas a crear una aplicación con XAML, debes invalidar OnWindowCreated en App.xaml.cs/vb/cpp para registrar allí el evento CommandsRequested .

Se aplica a