1
有什麼辦法強制鏈接使用Internet Explorer打開? (我更喜歡做一些其他的瀏覽器,但他們不處理Facebook網址回調以及在Windows Phone)WinRT:無論默認瀏覽器在Internet Explorer中打開鏈接
目前我使用的代碼:
auto uri = ref new Windows::Foundation::Uri(str);
auto launchOptions = ref new Windows::System::LauncherOptions();
launchOptions->DisplayApplicationPicker = true;
Windows::System::Launcher::LaunchUriAsync(uri, launchOptions);
它顯示一個選擇器,讓用戶選擇ie或其他安裝的瀏覽器,但它不會強制即。 我也試過:
auto uri = ref new Windows::Foundation::Uri(str);
auto launchOptions = ref new Windows::System::LauncherOptions();
launchOptions->PreferredApplicationDisplayName = "Internet Explorer";
Windows::System::Launcher::LaunchUriAsync(uri, launchOptions);
但抱怨PreferredApplicationPackageFamilyName未被設置。 而且我無法在任何文檔中找到Internet Explorer的PFN,也無法在Google搜索後找到它。
有沒有人有同樣的問題? 我不能使用任何C#,只有WinT的C++ API。 我已經找到了解決辦法使用C#,但遺憾的是它與我的工作項目不兼容...
THX對您有所幫助,
達明
什麼是C#解決方案的工作原理?你爲什麼不能複製它? – WiredPrairie
會使用'WebView'作爲選項嗎?我相信它使用與IE相同的引擎。 –
你好菲利普,我目前正在嘗試這個解決方案,這導致我另一個問題,我可能會問自己以後看到一個解決方案後,可能會問stackoverflow後:) – Sistr