articles » archived » dot-net » windows-presentation-foundation


Windows Presentation Foundation

Windows Presentation Foundation (WPF) is a library used to create the user interface for smart client applications. Importantly, WPF separates the designer from the developer by having files that describe the user interface and then code files, written by developers, that utilize them.


Simply put, XAML describes the user interface.

Understanding XAML (eXtensible Application Markup Language) is key to understanding WPF. Some .NET applications (and others like Xamarin) utilize XAML during their development. XAML code is declared using textual XML.

WPF extenstions to XAML are defined with the XML namespace xmlns="". The XML namespace is mapped to the x prefix (to be seen) and features that are common to all XAML vocabularies.

XAML Syntax

XAML elements map to .NET classes.

XAML elements map to custom .NET classes, too.

This site uses cookies. Cookies are simple text files stored on the user's computer. They are used for adding features and security to this site. Read the privacy policy.