Creating a Project

The following example shows you how to create and configure a basic Tizen .NET application project in Visual Studio. An application project contains all the files that make up an application.

The following figure illustrates the output of application. The application screen displays a message, Welcome to Xamarin Forms! and there is no user interaction.

Figure: Application running on the wearable emulator

To create a new Tizen .NET project:

  1. 1. Launch Visual Studio.

  2. 2. In the Visual Studio menu, select File > New > Project.

    A New Project window appears.

  3. 3. Select Installed > Visual C# > Tizen and select Tizen App (Xamarin.Forms) template.

    Define the project properties and click OK. You can enter the Name, Location, and Solution name.

    The Tizen Project Wizard pop-up window appears.

  4. 4. Select the profile, Wearable (preview). Click OK.

    If you select the Common profile, you cannot select Mobile, TV, or Wearable.

The following figure illustrates a solution with four projects created and displayed in the Solution Explorer view:

Figure: Project with mobile, TV, and wearable profiles
  • The <projectname> project contains the Xamarin.Forms code shared across platforms.

  • If you select the common profile in the Tizen Project Wizard, a common project titled <projectname>.Tizen is added. It contains code to instantiate your common application within the Tizen framework.

  • If you select the wearable profile in the Tizen Project Wizard, a wearable project titled <projectname>.Tizen.Wearableis added. It contains code to instantiate your wearable application within the Tizen framework.

If you are already familiar with Xamarin.Forms, this project has the same structure as a Xamarin.Forms portable application. The <projectname> project is the portable class library and the others are the platform-specific projects; however, in Tizen .NET, only the Tizen platform-specific project is generated.

The .cs file in the portable project already contains simple Xamarin.Forms code that makes a basic UI.