Posted by: Mahesh Sabnis
in Category Visual Studio
Note: You have to install VS2011 developer preview on Windows 8 Developer Preview to get access to the template for Metro Style App.
What is a Metro Style App?
As Microsoft defines it “Metro style apps are full screen apps tailored to your users' needs, tailored to the device they run on, tailored for touch interaction, and tailored to the Windows user interface. Windows helps you interact with your users, and your users interact with your app”
Step 2: The project structure will be as below:
Step 3: Open default.html and add the following Html UI control as below. You can add any business logic, but I will keep things simple and display only a date.
Step 4: In the ‘package.appxmanifest’, I have set the AppLogo and some settings, as shown below:
Step 5: Run the application and the result will be shown in the Emulator as shown below:
Click on ‘Click Me’ and the result will be as shown below:
In the Windows 8 Developer Preview, the above Metro Style App will be deployed in tile form as shown below: (Red Marked)
The entire source code of this article can be downloaded over here
This article has been editorially reviewed by Suprotim Agarwal.
C# and .NET have been around for a very long time, but their constant growth means there’s always more to learn.
We at DotNetCurry are very excited to announce the The Absolutely Awesome Book on C# and .NET. This is a 500 pages concise technical eBook available in PDF, ePub (iPad), and Mobi (Kindle).
Organized around concepts, this eBook aims to provide a concise, yet solid foundation in C# and .NET, covering C# 6.0, C# 7.0 and .NET Core, with chapters on .NET Standard and the upcoming C# 8.0 too. Use these concepts to deepen your existing knowledge of C# and .NET, to have a solid grasp of the latest in C# and .NET OR to crack your next .NET Interview.
Click here to Explore the Table of Contents or Download Sample Chapters!