Uh …. hello … I’ll start my first technical article with the technology WindowsPresentation Foundation
then it’s my favorite. First, what is Windows Presentation Foundation (WPF)?Windows Presentation Foundation is the next generation of Microsoft UIframework
to create applications with rich user exprience.
It is part. NET Framework 3.0 and above.
WPF combines applications with graphical user interfaces (2D, 3D), the documentand multimedia.
Vector rendering engine uses hardware acceleration of modern graphics cards.
This makes the interface faster, scalable and resolution independent following figuregives an overview of the WPF maininnovations
Now let’s go further with the separation of appearance and behavior
WPF separates the development of user interface behavior.
The onset is usually specified in the Extensible Application Markup Language(XAML)
The behavior is implemented and managed in a programming language C # orVisual Basic.
The two parts are connected by data link, events and commands.
The separation of appearance and behavior has the following advantages:
A-Look and loosely coupled
2-designers and developers can work on separate forms.
3-L’Outils graphics can work on simple XML documents instead of analyzing the code.
Controls in WPF are extremely composable. You can définirpratiquement any type ofcontrol that the content of another. Although stop horrible flexibility to designers, it is avery powerful if you use appropriate. Put a picture in a button to create a buttonimage, or to a list of videos in a combobox to select a video file.
<StackPanel Orientation= »Horizontal »>
<Image Source= »wpfbutton.png » Stretch= »Uniform »/>
<TextBlock Text= »Play Sound » />
Resolution of independence, all the measures in WPF are logical units - no pixels. Aunitélogique is a 1 / 96 of an inch. If you increase the resolution of your screen, the user interface remain the same size. DepuisWPF based on a vector rendering engine is incredibly easy to build scalable user interfaces.
By Khalil master from http://msptechno.wordpress.com
Traduct by elmagnif.