Tuesday, February 18, 2014

Windows 8 Application Architecture

With the introduction of Windows 8 , Microsoft introduced a new Architectural platform to developers to develop new application model called Windows Store App   . It enables developers to develop Applications on different languages.

Each programming language has a corresponding app model. The app model is a set of files and design patterns that express an implementation architecture.





 In windows 8 App Architecture there are some Key things
  1. App Entry Point 
  2. Presentation Technology
  3. Asynchronous Programming Model.
Lets See them :)



 App Entry Point

The app's entry point is the function or method that the system calls to start running your app's code. The entry point depends on the programming language.


App model
Entry point
File location
JavaScript
onactivated function
default.js in js folder
C#/Visual Basic
OnLaunched method
App.xaml.cs / App.xaml.vb
C++/CX with XAML
OnLaunched method
App.xaml.cpp
C++/CX with Microsoft Direct3D
main function
Direct3DApp1.cpp


 Presentation technologies

 The app model's presentation technology defines the look and feel of the app.

Programming language
Presentation technology

JavaScript
HTML5

C#/Visual Basic
XAML

C++/CX
XAML, DirectX, and XAML/DirectX interop

Asynchronous programming

App model
Asynchronous

JavaScript
Common JS Promises/A

C#/Visual Basic
async/await keywords

C++/CX
task class / IAsyncOperation


References (http://msdn.microsoft.com/library/windows/apps/br211361)


0 comments: