Windows Presentation Foundation (WPF)

Google+ Pinterest LinkedIn Tumblr +

Windows Presentation Foundation (WPF)

Introduction

Windows Presentation Foundation (also known as WPF) is the graphical subsystem feature of the Microsoft .NET Framework 3.0 available on windows XP SP2, Windows server 2003 and Windows Vista.

WPF provides the foundation for building the next generation of user interface by providing a unified approach to UI, Documents, 2D and 3D graphics, Animation, Media and vector-based graphics (allowing an infinite lossless scaling).

WPF engine routs the graphics through Direct3D engine and allowing Windows to offload graphics tasks to the Graphics Processing Unit found on the computer’s graphics card. This will reduce the workload on the computer’s Central processing unit.

WPF Features:

Digital Media Services

  • WPF provides shape primitives for 2D graphics along with a built-in set of brushes, pens, geometries, and transforms.
  • The 3D capabilities in WPF are a subset of the full feature set provided by Direct3D. However, WPF provides tighter integration with other features like user interface (UI), documents, and media. This makes it possible to have 3D UI, 3D documents, and 3D media.
  • There is support for most common image formats.
  • WPF supports the video formats WMV , MPEG and some AVI files.

.

XAML – eX tensible A pplication M arkup L anguage

XAML is a Declarative Language with Flow Control Support (pronounced “Zamel”) that simplifies the way of creating the UI for WPF application. You can create visible UI elements in the declarative XAML markup, and then separate the UI definition from the run-time logic by using code-behind files.

Data Binding :

WPF data binding allows decoupling the view from its data and providing a simple and consistent way for applications to present and interact with data. Elements can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML. WPF controls have built-in functionality to enable flexible styling of single data items or collections of data items. Sort, filter, and group views can be generated on top of the data.

WPF supports three types of binding:

OneWay : changes in the source property will cause changes in the target property

TwoWay : this binding causes changes to either the source property or the target property to automatically update the other.

OneWayToSource : is the reverse of OneWay binding; it updates the source property when the target property changes.

Deployment

WPF offers two main application types:

Standalone :

  • Runs on the client machine as a normal Windows Application.
  • Run as a Windows Forms Windows Application.

XAML Browser Application (XBAP)

  • Runs under Internet Explorer.
  • Transparent browser experience for the user.
  • Runs under partial trust environment, and are not given full access to the computer’s resources.
  • Dynamically deployed application via ClickOnce (behind the covers).
Share.

About Author

Leave A Reply