Windows Presetation Foundation (WPF) 1. Introduction
Overview The Windows Presentation Foundation is part of the.NET framework 3.0 and higher. WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one framework. WPF uses a vector based rendering engine that takes advantage the hardware acceleration available in high-performance graphic cards. WPF applications are scalable and resolution independent.
Separation of Appearance and Behavior WPF separates the appearance of an user interface from its behavior. The appearance is generally specified in the Extensible Application Markup Language (XAML), the behavior is implemented in C# (or VB). The two parts are tied together by databinding, events and commands. Appearance and behaviour are loosely coupled Designers and developers can work on separate models Graphical design tools can work on XML documents instead of parsing code /
Controls in WPF are Composable
/ Customizable Because of the strict separation of appearance and behavior you can change the look of a control without affecting the behavior. The concept of styles let you skin controls. Templates let you replace the appearance of a control.
/ Resolution Independence Measurements in WPF are logical units rather than pixels. A logical unit is a 1/96 of an inch. If you increase the resolution of your screen, the user interface stays the same size while increasing resolution and therefore sharpness. Since WPF builds on a vector-based rendering engine user interfaces are scaleable.
/ WPF Development Tools Microsoft provides two development tools for WPF applications. Visual Studio – Code Developer Environment Expression Blend – Designer Tool
/ Microsoft Expression Studio Expression Blend is built to create user interfaces in WPF and Silverlight. It builds the bridge between designer and developers. It can open VisualStudio solutions Expression Design is a leightweight version of Adobe Illustrator to create and edit vector graphics. Expression Media is built to encode, cut and edit video files and prepare them for silverlight streaming Expression Web is Microsoft next generation of HTML and Javascript editor. Its the replacement for Frontpage.
Collaboration between Designers & Developers translation
/ <Window x:Class="WPF_0.Window1" xmlns=" xmlns:x=" Title="Window1" Height="300" Width="300"> <Button Height="23" Margin="104,107,99,0" Name="button1" VerticalAlignment="Top" Click="button1_Click">Say Hello Simple WPF Application – Hello WPF!
/ v 0 WPF Training Videos WPF Roadmap WPF4 Plumbing & Intrernals Text to Speech in WPF