Saturday, January 28, 2012

Windows 8 Programming Tutorials : Lets see what we can do on windows 8 and how.

Windows 8  and windows mobile 7 programming is based on (WinRT) Windows Runtime : new subsystem in Windows 8 that allows users to build touch optimized applications in the metro look and feel. It exists in parallel with other frameworks like .NET (WPF), Silverlight or native C++ and will not replace those technologies. While metro style apps are manily consumer focused - .NET and Silverlight target more on line-of-business applications.

 To develop metro style application we can use languages like c#, javascript, html, c++ too...


WinRT contains it's own .NET runtime which is actually a subset of the full .NET framework and XAML runs natively.


Windows runtime provides a modern API for media, communication, device access, data and fundamental application tasks and is fully object oriented approach.
WinRT is native as com objects but we never have to worry about the complexcities as the use has been made very easy to impliment, as we use just API to call internal functionalities and dont have to worry about the internal structure or implimentation, and we just need to know the function we need to perform and we will have the api to do it. :)

Using it through different languages

JavaScript :
var filePointer= new Windows.Storage.Pickers.FileOpenPicker;
filePointer.fileTypeFilter.append(".jpg");
filePointer.pickSingleFileAsync().then();
 
 
C#
 
var filePointer= new Windows.Storage.Pickers.FileOpenPicker();
filePointer.fileTypeFilter.append(".jpg");
var result = await fp.PickSingeFileAsync();
 
C++
 
auto filePointer= Windows::Storage::Pickers::FileOpenPicker();
filePointer-> FileTypeFilter->Append(".jpg");
auto result = filePointer->PickSingeFileAsync()
 
 
 

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc

 #Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc Linux is an open-source operating system that is loved by millio...