SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software Kodyaz Development Resources
Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

Windows 10 Games

Microsoft Games on Windows 8 and Windows 10

WebBrowserTask Windows Phone Launcher to Open Web Browser and Display URL

Programmers use WebBrowserTask to launch Internet Explorer web browser within a Windows Phone 8 app to open external web URL. This Windows Phone 8 app development tutorial shows how to open web browser in Windows Phone 8 app using WebBrowserTask Windows Phone 8 Launcher in Microsoft.Phone.Tasks namespace.

For example you deal with Windows Phone 8 app development and you want to open your homepage using HyperlinkButton control on the WP8 app Help or About page. Then using Microsoft.Phone.Tasks namespace, among Windows Phone 8 Launcher WebBrowserTask can be used to launch Internet Explorer 10 web browser and display the web address (URL) you specify in your app code.

HyperlinkButton and WebBrowserTask in Windows Phone 8 App Development

While I was preparing About page for my Windows Phone 8 app Lights Out game, I need to open the online Lights Out game page on WP8 default web browser, Internet Explorer 10. I designed following layout for About page of the sample Windows Phone 8 game app. You will see the HyperlinkButton control with link text set to "http://www.kodyaz.com"

HyperlinkButton and WebBrowserTask to launch Web Browser to display external URL
HyperlinkButton control and WebBrowserTask is used to launch Web Browser (Internet Explorer 10 on Windows Phone 8) and display external web address or URL

The easiest way to open a web page on web browser is using WebBrowserTask among Windows Phone Launchers.

In the Click event of the HyperlinkButton we can create code to handle a Windows Phone 8 launcher to open Internet Explorer web browser and navigate to URL address that we will define.

<HyperlinkButton Content="http://www.Kodyaz.com" Click="HyperlinkButton_Click_1" HorizontalAlignment="Left" Margin="10,205,0,0" VerticalAlignment="Top" Width="283" />

Before using WebBrowserTask we have to include the Microsoft.Phone.Tasks namespace into our code.

// C#
using Microsoft.Phone.Tasks;

' VB
Imports Microsoft.Phone.Tasks

Now we are ready to code to create a web browser task instance and specify a URL address for this task using its URI property. Then we will start the task by calling the SHOW method.
Here is a sample VB.NET code

Dim webBrowserTask as WebBrowserTask = new WebBrowserTask()
webBrowserTask.Uri = new Uri("http://www.kodyaz.com", UriKind.Absolute)

Of course Windows Phone app developers can also use a Web Browser component and display the desired web address in this component. Using WebBrowser component is also an answer for how to open a web browser from a Windows Phone app. But this will not launch Internet Explorer web browser as an external application. And if you use Web Browser component instead of WebBrowserTask Windows Phone 8 Launcher, the web pages will be a part of your application navigation. Use WebBrowserTask for external references in your Windows Phone 8 app development projects.

Besides WebBrowserTask Windows Phone Launcher, in your Windows Phone 8 app development there are other launchers like EmailComposeTask to send email and SmsComposeTask to send SMS within an app, ShareLinkTask to share a link (for example your Windows Phone 8 app link) on social media sites.

Windows Phone 8

80070020 Error while Downloading App from Windows Phone Market

WP8 App Development

Windows Phone SDK

Register Phone

WP8 App Download Count

Windows Phone App

Windows Phone Launchers

WP8 Accent Colors

LaunchUriAsync URI Scheme

WP8 Kid's Corner

WP8 Features

Nokia Lumia 920

Windows 8

Windows 8 Tutorials

Windows 8 Download

Install Windows 8

Windows 8 Product Key

Windows 8 Tips

Windows 8 Games

Windows 8 tablet

Microsoft Surface

Samsung Slate 7

Asus Taichi

Windows 8 Phones

Nokia Lumia 920

Windows Phone 8 App Development

Register Phone

Windows Phone 8 Features

Microsoft Windows 8 Downloads, tutorials, guides and how-to documents

Microsoft Windows 8 Download
Save Windows Phone Screen using Screen Recorder
How to Create Flip Tile Programmatically in Windows Phone 8 App
How to Create Cycle Tile Programmatically in Windows Phone 8 App
New Windows Phone 8 Features
Download Windows Phone SDK 8 for Visual Studio 2012 and Windows Phone Emulator
Add Search Providers like Google Search Provider to Internet Explorer 10 IE10
Enable and Configure Kid's Corner on Windows Phone 8 Smartphones
How to Change Windows Phone 8 Broadcast Name
How to Change Windows Phone 8 Device Name
Download Windows Phone App for Windows 8
Windows Phone 8 App Development: A Quick Start Guide
Search for an App on Windows 8 App Store
Reinstall App Store for whom Removed Windows App Store
Create Picture Password for Windows 8 User
Windows 8 Tips - Windows 8 Close App
Group and Name Windows 8 Tiles on Start Screen
Learning Windows 8 Diary - What I learnt today
Windows 8 Installation Stuck at Getting Devices Ready
Rate Windows 8 Performance using Windows Experience Index
Windows 8 File Explorer aka Windows 8 Explorer
Pin Program to Taskbar using Windows 8 Pin to Taskbar option
How to Change Windows 8 Language
Windows 8 Wallpapers
How to Shutdown Windows 8
Windows 8 App Development using Visual Studio 11 Express
Windows 8 Installation (Windows Consumer Preview)
Install Windows 8 on Virtual Machine Oracle Virtual Box Configuration
Windows 8 Screenshots from Windows Consumer Preview Beta
Windows 8 Product Key to for Windows Consumer Preview Setup
Windows 8 Installation Compatibility Advisor Report
Tweet@rama Windows 8 Application for Twitter
Microsoft Windows 8 Activation using Desktop Control Panel
Windows 8 Product Key to Reinstall Windows 8
Change Screen Resolution in Windows 8 for Metro-Style Applications
How to Install Windows 8 - Installation Screenshots
New Windows Task Manager in Windows 8
Windows 8 Startup Repair with System Restore
How to Change Windows 8 User Account Picture
Windows 8 Tips and Tricks
Windows 8 Setup Error: HAL_INITIALIZATION FAILED. Your PC ran into a problem that it couldn’t handle, and now it needs to restart.
Windows 8 Games
Windows 8 with Windows 8 Xtreme

Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems