Windows应用商店应用LaunchUriAsync无效 [英] Windows Store App LaunchUriAsync Not Working

查看:120
本文介绍了Windows应用商店应用LaunchUriAsync无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用launcher.launchuriasync打开IE网络浏览器。每次触发此事件时,都会返回false。我尝试过在网上找到的注册修复,但这没有用。我无法访问浏览器的弹出窗口阻止程序设置,因此不能选择关闭它。如果有人有任何想法,我将不胜感激。



示例代码:



I am trying to open the IE web browser using the launcher.launchuriasync. Every time this event fires it returns false. I tried a regedit fix that I found online, but that did not help. I do not have access to my browser's popup blocker settings, so turning that off is not an option. If anybody has any ideas it would greatly appreciated.

Sample code:

private async void gridView_ItemClick(object sender, ItemClickEventArgs e){
    var options = new Windows.System.LauncherOptions();
    options.DesiredRemainingView = Windows.UI.ViewManagement.ViewSizePreference.UseHalf;
    options.DisplayApplicationPicker = true;
    bool success = await Windows.System.Launcher.LaunchUriAsync(a, options);
    if (success)
    {
       
    }
    else
    {
    
    }
}

推荐答案

这篇关于Windows应用商店应用LaunchUriAsync无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆