Introduction of Windows Presentation Foundation (WPF) Technology

By
Windows Presentation Foundation(WPF) :-WPF is nothing but it is the wrapper component on the top of Direct X  Architecture. WPF is a two -dimension (2-D) and three-Dimension (3-D) graphics engine with following features and capabilities as given below:-
  • It contains many common user interface components including button,text box ,sliders ,labels and edit boxes etc.
  • It supports 2-d and 3-d animations.
  • It supports Documents and media into a single environment.
  • It contains hyperlinks for navigating between documents and tables.
  • It provides various types of grids and panels to assist in layout.
  • It supports tier 0 tier 1 and tier 2 Architecture  models.
Goal of WPF:-
There are four main goal of WPF Technology as given below:-
  1. Unified approach to UI,Document and Media :-It Means Integration as a part of development and experience.
  2. Integrated Vector -based composition engine:-Its goal is Utilise the power of the pc throughout graphics stacks .
  3. Declarative programming :- In This designer and Developers can easily involve in application development.
  4. Ease of Deployment :- It allow the administrator to deploy and manage the  application securely.
Rendering Modes of WPF :- 
Hardware Acceleration :- It is a process by which you can use hardware functionality to perform some functionalities rather than writing the software logic.
Ex.
Suppose you want to draw rectangle,circle and other drawing model then you can  use two technology.
  • You can draw it by using hardware itself.
  • You can draw it by using a software (writing the logic code of rectangle ,circle etc.).
There are three Rendering modes of wpf Technology as shown below:-

architecture
  1. Tier 0 :- If Video card does not provide hardware acceleration then wpf technology uses the Direct X version less than 7.0.If any feature greater than this version 7.0 then wpf does not uses those features for display and rendering.
  2. Tier 1 :-In this model, video card provides partial hardware acceleration and use Direct X version 7.0 and 9.0 .WPF is capable to use Direct X version 7.0 and 9.0 for display and rendering.
  3. Tier 2:- In this model ,video card provides full Hardware acceleration.If Video card provide full acceleration then wpf uses Direct X Version equal or greater than 9.0 version for display and rendering.  
When microsoft launch 3.0 then it introduced three major technology as given below:-
  1. Windows Communication Foundation (wcf):- All the protocols communications comes under this section. 
  2. Windows Work Flow(WWF):-It helps the developers to make the work flow of the application.
  3. Windows Presentation Foundation (WPF):- It is used on the top of Direct X Model.
Before Launching WPF Technology, Microsoft introduced four other technology as given below:-
  1. User 32 API
  2. GDI (Graphical device Interface)
  3. GDI+
  4. Direct X 
    1. ) User 32 :- It provides the windows look and feel for text Boxes ,Buttons and other UI elements.User 32 API Provides the drawing capabilities to the users.32 ou can seen this component in window user 32 sub system.The main purpose of user 32 is to give look and feel  in UI element in windows.You can find user 32.dll file in your window.
Problem in User 32:-
If we want to draw line ,rectangle and circle then we can't draw it in User 32 API. To overcome this problem Microsoft launch Next Technology GDI (Graphical user Interface).
  2.)Graphical User Interface (GDI):-There are two main purpose to introduced this technology.
  • To improve Drawing capability
  • To use high level of abstraction of hardware so that programmer/Developers  can concentrate only  on programming logic not on design part and complexity of hardware is taken care by GDI.
Microsoft Introduced GDI (Graphical Device Interface) to provide drawing capabilities.It is not only provide drawing capabilities but also provide a high level of abstraction on the hard ware display.It encapsulate the all complexity of hardware in  GDI API.
Problem in GDI :-
  • GDI API did not support file JPEG ,PNG and anti-aliasing features etc.
  • The main issue of GDI was it did not use hardware acceleration.
  • It did not support animation and 3-D Features.
  • It is never used in game programming.
To overcome the some problems microsoft launched a new technology ,called GDI+.
   3.) GDI+ :- GDI+ is a extended version of GDI.
  • It supported the JPG and  PNG  files .
  • It supported anti-aliasing features also. 
  • It supported Gradient and shading features.
Note:-Hardware acceleration is a process in which we use hardware to perform some functionalities like rectangle/circle drawing etc.rather than performing these functionalities by software which is running in CPU Memory. 
Problem in GDI and GDI+:-
  • it did not support hardware acceleration.
  • It didn't support animation and 3-D Features.
  • It is never used in game programming.
To overcome this drawback Microsoft launched a new Technology, called Direct X.

   4.) Direct X :-  Microsoft has introduced Direct X technology to overcome the drawback of GDI and GDI+ technology. 
  • Direct X exploited hardware acceleration.
  • It support all animation and 3-D Features.
  • It supports full color graphics also.
  • It supports media streaming facilities and lot more.
  • It provide more supports to game developers.
Direct X Technology launched basically for game programming.It is not used for commercial application.Developers couldn't use for commercial purpose .This is the Biggest Disadvantage of Direct X technology.
Problem in Direct x:- Any Developer couldn't use Direct X technology for commercial purpose.It is only for game programmers. 
   To overcome this drawback Microsoft launch technology on the Top of Direct X ,called Widows PresentaTion Foundation (WPF).

   5.) WPF :- WPF is very power full technology launched by Microsoft which is used for commercial purpose.WPF always use Direct x engine to perform any task.Microsoft wanted to develop UI elements like textboxes ,button ,label etc using Direct x technology so that they exploited hardware acceleration features. Microsoft putted WPF on the top of Direct X so that we can not build only simple UI elements but also go step further and develop spacial elements like Grid ,Flow Document ,Ellipse,animations etc. If you are looking for light animation (not game programming),WPF will be a choice .You can also express WPF ,using xml which is called XAML(zammal)
  •   WPF uses Direct X to display textbox,label button etc.all the UI element textbox ,button ,label etc. display using hardware acceleration  capabilities.
  • All the displayed elements expressed in xml format that is call XAML.
  • WPF API basically read the XAML Format and use the Direct X engine to display it.
  • WPF is used in commercial programming
Stages of Different technology/Devices:-

What type of application can be built:-
  • WPF intended to replace both web forms and windows forms application.Application can be built to run in a browser or a standalone window.
  • Windows Forms and web pages/windows can co-exist in a browser or a standalone window.
  • One WPF Page/window can have both type of controls on it.
  • A New type of web application called XAML browser application XBAP(Formly web browser application WBA).
Designer tools :-
There are some Designer tool used for Designing Purpose as given below:-
  • MS Expression Graphics Designer --> ACRYLIC
  • MS Expression Interactive designer --> SPARKLE
  • MS Expression web Designer --> QUARTZ
  • MS Visual studio Designer --> CIDER
Architecture of WPF ,i Will discuss Next Tutorial....
For More...
  1. How to build and install calculator application on your system
  2. How to Build Form filling application like ibps
  3. How to implement page life cycle concepts in asp.net
  4. Data mining concepts in asp.net
  5. How to use application state and global state file in asp.net
  6. Htpp and state management concepts in asp.net
  7. Threading concepts in c#
  8. How to implement Web form Controls in asp.net
  9. How to implement file handling concepts in c#
  10. How to implement exception handling concepts in c#
  11. Different between delete and truncate statement in sql server
  12. How to use bindingNavigator control in asp.net 

0 comments:

Post a Comment

Powered by Blogger.