WinUI is Microsoft's UI layer of modern controls and styles for building Windows desktop apps, with WinUI 3 shipping in the Windows App SDK.
Kinnara/ModernWpf
Fluent-style themes and WinUI-inspired controls for WPF desktop applications on Windows.
- Stars
- 4,964
- Forks
- 487
- Open issues
- 3
- Last commit
- 5 days ago
What is it?
ModernWPF is a community-maintained library that brings Fluent styling and modern controls to Windows Presentation Foundation applications. It runs directly on WPF rather than replacing the WPF runtime, and it targets .NET Framework 4.6.2, .NET 8, and .NET 10 on Windows.
It restyles stock WPF controls with Light, Dark, and High Contrast themes, and ports WinUI-style controls such as NavigationView, NumberBox, ContentDialog, InfoBar, CommandBarFlyout, and ItemsRepeater. Window chrome, title-bar integration, and theme APIs are available at application, window, and element level.
The 1.x line is an active preview, with the 0.9.x line frozen and unsupported. Existing applications are expected to follow a migration guide when upgrading.
Key features
- 01Fluent styling for stock WPF controls with Light, Dark, and High Contrast themes.
- 02WPF ports of WinUI-style controls such as NavigationView, NumberBox, and InfoBar.
- 03Application, window, and element-level theme APIs.
- 04Modern window chrome and title-bar integration.
- 05Available as the ModernWpfUI NuGet package.
Use cases
- Modernizing the look of an existing WPF desktop application without rewriting its UI.
- Building new Windows desktop apps with Fluent-style navigation and dialogs.
- Adding dark mode and high-contrast support to WPF software.
Quick start
- 1
Install the 1.x NuGet package
dotnet add package ModernWpfUI --version 1.0.0-rc.1 - 2
Add the recommended 1.x resources to App.xaml
- 3
Opt a window into ModernWPF styling with ui:WindowHelper.UseModernWindowStyle
Things to know
- Windows-only, since it targets Windows Presentation Foundation.
- The 1.x line is an active preview, so APIs may still change before stable 1.0.0.
- Migrating from 0.9.x requires code and resource changes, and the MahApps adapter was removed.
In collections
Topics
FAQ
- What is ModernWpf?
- Fluent-style themes and WinUI-inspired controls for WPF desktop applications on Windows. ModernWPF is a community-maintained library that brings Fluent styling and modern controls to Windows Presentation Foundation applications. It runs directly on WPF rather than replacing the WPF runtime, and it targets .NET Framework 4.6.2, .NET 8, and .NET 10 on Windows.
- Is ModernWpf free to use? What license does it have?
- ModernWpf is open source under the MIT license. Check the license terms before using it in commercial products.
- Is ModernWpf still maintained?
- Actively maintained. The last commit to ModernWpf was on Nov 2, 2026.
- What can I use ModernWpf for?
- Modernizing the look of an existing WPF desktop application without rewriting its UI. Building new Windows desktop apps with Fluent-style navigation and dialogs. Adding dark mode and high-contrast support to WPF software.
- How do I install ModernWpf?
- Install the 1.x NuGet package: dotnet add package ModernWpfUI --version 1.0.0-rc.1 Add the recommended 1.x resources to App.xaml Opt a window into ModernWPF styling with ui:WindowHelper.UseModernWindowStyle
- Where can I get ModernWpf?
- The source code and installation instructions are on GitHub: https://github.com/Kinnara/ModernWpf
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A WPF UI toolkit that restyles standard controls and adds modern window chrome, theming, non-blocking dialogs and navigation controls.
A Windows lyrics visualizer and music player built with WinUI 3 and Win2D, with per-syllable karaoke highlighting and customizable layouts.
A Windows 11 flyout app that shows media info, lock key status and a taskbar widget in Fluent 2 style popups.
Free, open-source Windows app for setting animated wallpapers, web pages, games and screensavers on the desktop, built with WinUI 3.
A collection of feature samples for Microsoft's Windows App SDK, covering WinUI 3, AI, notifications, windowing and more.