How to create a WinJS application by using Essential Studio for JavaScript

Introduction to WinJS

WinJS is an open source JavaScript library developed by Microsoft. It has been designed with a primary goal of simplifying Windows Store app development for Windows 8, using HTML 5 and JavaScript as an alternative for XAML and C#, VB.NET, or C++ (CX).

Create a simple image viewer application

The following steps will help you understand how to create an application by using WinJS and Essential Studio for JavaScript controls. Step 1: Visual Studio 2012 provides a project template to create WinJS applications. Create a blank project from this template as shown in Figure 1. WinJS templates are available in JavaScript > Windows Store.

Figure 1: WinJS project template selection

Step 2: Add code into the project template created with an HTML page to develop this application. As it is developed by using Syncfusion JavaScript controls, you have to refer to its dependent scripts and style sheets in the <head> section.

Note:You can get the above referred scripts and style sheets from the following location: C:\Users\{User name}\AppData\Local\Syncfusion\EssentialStudio\{version}\JavaScript\assets

Or

[Installed Samples location]\Syncfusion\EssentialStudio\{version}\JavaScript\assetsStep 3: In the HTML page, add the following code examples to create the application by using Essential Studio for JavaScript: