Bagikan melalui


SettingsPane.GetForCurrentView Metode

Definisi

Catatan

SettingsPane tidak digunakan lagi, dan mungkin tidak berfungsi pada semua versi Windows 10. Alih-alih menggunakan SettingsPane, integrasikan opsi pengaturan ke dalam pengalaman aplikasi. Untuk informasi selengkapnya, lihat Panduan untuk pengaturan aplikasi.

Mendapatkan objek SettingsPane yang terkait dengan tampilan aplikasi saat ini (yaitu, dengan 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

Mengembalikan

Panel pengaturan.

Atribut

Keterangan

Jika Anda membuat aplikasi dengan XAML, Anda harus mengganti OnWindowCreated di App.xaml.cs/vb/cpp untuk mendaftarkan peristiwa CommandsRequested di sana.

Berlaku untuk