Oxygene & WP8 – Creating First Windows Phone 8 Project

Oxygene and Windows Phone 8 tutorials – Article Index

This blog post will demonstrate how to get started with the Windows Phone 8 development using Oxygene by creating a simple “Hello World” app.

Make sure that all the prerequisites are installed as described in the Oxygene & WP8 – Setting up the Development Environment blog post.

To create a Windows Phone 8 Project using Oxygene, follow the below steps

  1. Launch Visual Studio 2012 on your Windows 8 PC.
  2. Click “File” menu and then “New Project”.
  3. In the “New Project Dialog”, select “Oxygene for .NET” in the template (left sidebar) and then click “Windows Phone”. This will display the list of available templates for Windows Phone development using Oxygene for .NET as shown in the below screenshot.

    Oxygene & WP8 – Creating First Windows Phone 8 Project

  4. Provide a Name for the Windows Phone project and choose the location where the project should be created and click “OK”.
  5. This should being in a dialog which prompts the user to select the “Target Windows Phone OS Version” as shown in the below screenshot. Let’s select Windows Phone OS 8.0 and click OK.

    Oxygene & WP8 – Creating First Windows Phone 8 Project

  6. If you are using the trial version of the “Oxygene for .NET” , this will prompt you a message indicating the trial version , In this case , click “Continue as trial” to continue.
  7. You will immediately see that the Windows Phone project is created. You can see the list of files created in the project from Solution Explorer which contains the MainPage.xaml , MainPage.xaml.pas along with other files and folders as shown in the below screenshot.

    Oxygene & WP8 – Creating First Windows Phone 8 Project

  8. Double click on the MainPage.xaml to open the Windows phone page in the designer.
  9. Now , select the TextBlock that displays as “Page name” , right click and select “Edit Text”

Oxygene & WP8 – Creating First Windows Phone 8 Project

  1. Change the text to “Hello World”. Similarly, change the text that is defined for the application on the top of the page.
  2. Press F5 to run the project. This will launch the Windows Phone 8 emulator and you should soon the first Windows phone app in the emulator J

    Oxygene & WP8 – Creating First Windows Phone 8 Project

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...