SettingsFlyout 无法显示在 Windows Phone 10
The SettingsFlyout can not be displayed in Windows Phone 10
我创建了自定义 SettingsFlyout。 SettingsFlyout 在我的桌面上 运行 时正确显示。但是当我 运行 它在移动设备上时,SettingsFlyout 没有出现。这是代码:
private void SettingsButton_Click(object sender, RoutedEventArgs e)
{
var flyout = new TestSettingsFlyout();
flyout.Show();
}
在MSDN的发言站:
Caution SettingsFlyout is not supported for use in UWP apps for Windows 10.
Caution SettingsFlyout is supported only for use with the SettingsPane in Windows 8. While the SettingsFlyout type is visible in Windows Phone projects, SettingsPane is not present on Windows Phone, so use of SettingsFlyout is not supported.
因此这可能是问题所在。
我创建了自定义 SettingsFlyout。 SettingsFlyout 在我的桌面上 运行 时正确显示。但是当我 运行 它在移动设备上时,SettingsFlyout 没有出现。这是代码:
private void SettingsButton_Click(object sender, RoutedEventArgs e)
{
var flyout = new TestSettingsFlyout();
flyout.Show();
}
在MSDN的发言站:
Caution SettingsFlyout is not supported for use in UWP apps for Windows 10.
Caution SettingsFlyout is supported only for use with the SettingsPane in Windows 8. While the SettingsFlyout type is visible in Windows Phone projects, SettingsPane is not present on Windows Phone, so use of SettingsFlyout is not supported.
因此这可能是问题所在。