Microsoft has provided certain templates in Visual Studio to develop store applications using JavaScript and HTML, on the other hand, we can also add it in our ASP.NET application to bring certain functionalities of Windows runtime features or changing a look and feel accordingly.
You can start using WinJS by adding the JavaScript to use Windows runtime features and CSS to make UI as Windows applications. In the ASP.NET web application you can add the package through NPM by making an entry, as follows:
On saving the file, the package will be downloaded automatically in Visual Studio 2015 under the node_modules\npm
folder.
Here is a screenshot of the folders the WinJS library contains. JS contains winjs
modules, css
, and fonts
that can be used to change UI look and feel:
You can use Gulp.js
to copy the css
and js
files to the wwwroot
folder and reference them on the page, we can add the following sample code that displays the You...