Windows Presentation Foundation Simple Overview



Windows Presentation Foundation is a technology provided by .Net framework to develop a client application with all kind multimedia capabilities. It basically simplifies your programming work and provides you the rich graphic interface kind of application. Two dimensional and three dimensional graphics can be easily done through this technology with minimum effort.

How to develop WPF application?

WPF application can be developed using either of the programming languages in .Net framework - C# or Visual Basic. Two programming methods should be used to develop the application.

  • Markup Programming - Markup programming is generally used to design the user interface for the WPF application. It contains various components like pages, dialog boxes, buttons and other types of controls. Each element defined in the markup programming will have one WPF class.
  • Code Behind Programming - it's generally used to provide the functionality for the various elements available in the user interface. Generally event handlers play a vital role in implementing the functionality for each element.

Types of Application that WPF Provides
  • Desktop Applications - desktop applications are also called a standalone application which will be installed in your desktop.
  • Web Applications - web applications developed here is also called a XAML or a browser application which runs in web browser.

To develop the desktop or web based applications you need to create three types of files.
  • Deployment manifest - Its just an XML file which references the click once application deployment which shows the current version and the other deployment settings. The following picture shows an example of a Deployment Manifest XML file.

    1.gif

  • Application manifest - its just an another XML file which identifies the shared and private side by side assemblies that an application should bind at run time. The following picture shows an example of Application Manifest XML file

    2.gif

  • Executable code

These applications are not subjected to any kind of security restrictions and they can access all kind of system resources.

Why WPF and Why Not default Windows Application
  • Data binding is better in WPF when compared with windows application
  • Easier and simple steps are required to develop
  • Rich internet application through WPF
  • Graphical and Interactive User Interface
  • 2D and 3D graphics can be done through minimal code
  • Business applications are much more easier to develop using WPF with all functionalities

Hope the above article covers the overview of WPF programming and its advantages.

Up Next
    Ebook Download
    View all
    Learn
    View all