【发布时间】:2018-06-27 11:01:25
【问题描述】:
我创建了一个演示,它使用 Launcher 打开安装了 Windows 10 的 APP。
private async void OpenApp()
{
var launchUri = new Uri("URL of Installed APP");
var success = await Launcher.LaunchUriAsync(launchUri);
b1 = success;
if (success)
{
// URI launched
}
else
{
// URI launch failed
}
}
例如,我从 Launcher 打开了 Windows 设置应用程序。我想在一段时间后从我的 WPF 应用程序中关闭同一个应用程序。
有可能吗?请告诉我一些解决方案。
【问题讨论】: