Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
セミナーで受けた質問へのフォローアップです。WebBrowserコントロールは、Windows Phone “Mango”からInternet Explorer 9のエンジンを利用してレンダリングを行えます。Silverlightの他のコントロールとの重ね合わせができる点はPC/Intel MacのSilverlight 4のWebBrowserコントロールと異なっています。
さて、このWebBrowserコントロールですが、既定値では、JavaScriptを実行しない設定になっています。
スクリプトの実行を有効にするには、WebBrowser.IsScriptEnabled プロパティをtrueに設定し、WebBrowser.Navigateメソッドなどで新しいページを読み込みます。
効果が有効かどうか、Windows Live Interactive SDKとHotmailのページで試してみました。サンプルプログラムを添付します。
Windows Live Interactive SDK (https://isdk.dev.live.com)
Hotmail (https://www.hotmail.com)
JavaScripを実行するページを表示する際は、ご注意ください。