About Windows Presentation Foundation (WPF)
Windows Presentation Foundation, or WPF, is a user interface framework. The components of a user interface are referred to as controls and include Label
, TextBox
, Button
, and so on.
Before WPF can be used, the PresentationFoundation
assembly must be loaded. The assembly can be loaded using Add-Type
. This command is required once in each PowerShell session that intends to use WPF:
Add-Type -AssemblyName PresentationFramework
A WPF user interface typically defines all or most of the visible components in an Extensible Application Markup Language (XAML) document.