A UI framework for building Windows desktop applications
open sourceMITself-hostablefree
Windows Presentation Foundation (WPF) is Microsoft's UI framework for Windows desktop applications on .NET. UIs are declared in XAML and wired up in C# or Visual Basic, with an application model, resources, controls, layout, data binding (the basis of the MVVM pattern), styles and templates, 2D and 3D graphics, animation, documents, media and typography. Its rendering is vector-based and resolution-independent, so apps scale cleanly on high-DPI monitors, and its content model lets controls host any content, such as a video in a button. Visual Studio's XAML designer and Blend support it. The .NET implementation is open source (MIT) and runs only on Windows, including ARM64; the original ships with .NET Framework 4.
Problems it solves
- build a native Windows desktop application in C#
- declare a desktop UI in XAML with data binding to my view models (MVVM)
- a Windows desktop UI that scales cleanly on high-DPI monitors
- style and template every control in a Windows app for a custom look
- migrate a .NET Framework WPF app to modern .NET
- design Windows desktop screens visually in Visual Studio
Features
- XAML declarative UI
- controls, layout, data binding, styles and templates
- 2D and 3D graphics and animation
- documents, media, text and typography
- vector-based, resolution-independent rendering for high-DPI displays
- flexible content model (any content inside controls)
- Visual Studio XAML designer and Blend
- ARM64 support since .NET 6
Limitations
- Runs only on Windows, even though .NET is cross-platform
Alternatives
The same job
These do what WPF does.
