我使用MVVM Light Framework作为metro风格的应用程序。如何在Metro风格的应用程序中使用SettingsPane和MVVM Light
我想在SettingsPane中添加一个命令来显示关于页面。关于页面应显示在右侧(如预安装的日历应用程序)。对于一个测试,我已经在App.xaml.cs加入OnLaunched方法如下一行:
void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
// Add an About command
var about = new SettingsCommand("about", "About", (handler) =>
{
// show about page in flyout transition...
});
args.Request.ApplicationCommands.Add(about);
}
这是唯一的途径:
SettingsPane.GetForCurrentView().CommandsRequested += App_CommandsRequested;
和事件处理程序下面? 如何飞出关于页面?有小费吗...?
感谢您的帮助! 迈克尔
谢谢,我使用callisto的SettingsFlyout! –