ModernWPF brings Fluent styling and modern controls to Windows Presentation Foundation apps. It runs on WPF directly and is distributed as the ModernWpfUI NuGet package.
Overview
ModernWPF is a community-maintained library that adds Fluent styling and WinUI-inspired controls to WPF desktop applications. It executes on WPF itself and is not WinUI or a replacement for the WPF runtime.
Stock WPF controls gain Fluent themes including light, dark, high contrast, and compact resource behavior. Additional controls include WPF ports of NavigationView, NumberBox, ContentDialog, InfoBar, CommandBarFlyout, and ItemsRepeater, plus APIs for application, window, and element theming and modern window chrome.
Supported target frameworks include .NET Framework 4.6.2, .NET 8 on Windows, and .NET 10 on Windows, where stock controls can use official PresentationFramework.Fluent resources. Developers add recommended XAML resource dictionaries to App.xaml and reference controls from the ModernWpf XAML namespace.
ModernWpf.Gallery in the same project is an interactive sample catalog of controls and themes for developers. The 1.x line is the active preview track, while 0.9.x is frozen without planned fixes.
Key features
- Fluent themes for WPF controls
- WinUI-inspired control ports
- Light, dark, and high contrast
- Application and window theme APIs
- Modern title bar and chrome
- NuGet ModernWpfUI package
- NET Framework and modern .NET targets
- Interactive gallery sample app
Use cases
- Modernize existing WPF desktops
- Fluent UI without leaving WPF
- NavigationView in WPF apps
- Consistent theming across windows
- Staged migration from 0.9.x