SettingsPane.GetForCurrentView 方法

定义

注意

SettingsPane 已弃用,可能不适用于所有版本的 Windows 10。 无需使用 SettingsPane,而是将设置选项集成到应用体验中。 有关详细信息,请参阅 应用设置指南

获取与当前应用视图关联的 SettingsPane 对象 (即 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

返回

设置窗格。

属性

注解

如果要使用 XAML 创建应用,则应在 App.xaml.cs/vb/cpp 中重写 OnWindowCreated,以在 App.xaml.cs/vb/cpp 中注册 CommandsRequested 事件。

适用于