我正在使用Windows默认设置弹出窗口添加一些自定义命令。但是现在我需要打开一个本地存储的HTML文件?我怎样才能做到这一点 ?我想从app.xaml.cs动我弹出代码的App.xaml 任何帮助 第二件事可以理解 下面是我的代码:如何在弹出窗口中打开本地存储的html文件?
protected override void OnInitialize(IActivatedEventArgs args){
SettingsPane.GetForCurrentView()CommandsRequested + = App_CommandsRequested; }
void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
SettingsCommand settingsCommand = new SettingsCommand(
"About",
"About",
command =>
{
var flyout = new SettingsFlyout();
flyout.Title = "About";
string file = "ms-appx-web:///assets/about/about.html";
flyout.Show();
}
);
args.Request.ApplicationCommands.Add(settingsCommand);
}
2014-09-20
Dhruv