+5
日增长
9,757
stars
1,007
forks
91
watchers
635
prs
906
issues
23
releases
README
!WPF UI Banner Dark
!WPF UI Banner Light
WPF UI
Created with ❤ in Poland by Leszek Pomianowski and wonderful open-source community.
WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly. Library changes the base elements like Page, ToggleButton or List, and also includes additional controls like Navigation, NumberBox, Dialog or Snackbar.
Deliver humanitarian aid directly to Ukraine
!ua
Support
To ensure you receive the expert guidance you need, we offer a variety of support plans designed to meet the diverse needs of our community. Whether you are looking to modernize your WPF applications or need assistance with our other libraries, our tailored support solutions are here to help. From priority email support to 24/7 dedicated assistance, we provide flexible plans to suit your project requirements.
Take a look at the lepo.co support plans
Sponsor WPF UI on GitHub
Getting started
For a starter guide see our documentation.
WPF UI Gallery is a free application available in the _Microsoft Store_, with which you can test all functionalities.
powershell
winget install 'WPF UI'
WPF UI is delivered via NuGet package manager. You can find the package here:
Visual Studio
The plugin for Visual Studio 2022 let you easily create new projects using WPF UI.
Screenshots
!Demo App Sample
!Monaco Editor
!Store App Sample
Works with Visual Studio Designer
!VS2022 Designer Preview
Custom Tray icon and menu in pure WPF
!WPF UI Tray menu in WPF
Custom Windows 11 SnapLayout available for TitleBar
!WPF UI Snap Layout for WPF
Development
If you want to propose a new functionality or submit a bugfix, create a Pull Request for the branch main.
How to use?
First, your application needs to load custom styles, add in the MyApp\App.xaml file:
xml
If your application does not have MyApp\App.xaml file, use ApplicationThemeManager.Apply(frameworkElement) to apply/update the theme resource in the frameworkElement.
C
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent();
ApplicationThemeManager.Apply(this);
}
}
Now you can create fantastic apps, e.g. with one button:
xml
Microsoft Property
Design of the interface, choice of colors and the appearance of the controls were inspired by projects made by Microsoft for Windows 11.
The Wpf.Ui.Gallery app includes icons from _Microsoft WinUI 3 Gallery_ app. They are used here as an example of creating tools for Microsoft systems.
Segoe Fluent Icons
WPF UI uses Fluent System Icons. Although this font was also created by Microsoft, it does not contain all the icons for Windows 11. If you need the missing icons, add Segoe Fluent Icons to your application.
According to the EULA of Segoe Fluent Icons we cannot shiTop issues
#887Button FontSize ineffective 30 comments · 2023-12-20#576WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.20 comments · 2023-04-01#1045MessageBox WindowStartupLocation does not work14 comments · 2024-04-10#1144Type or namespace name 'Ui' does not exist in the namespace when I set a name to a wpf-ui component in xaml12 comments · 2024-06-25#907Cannot add Navigation view items during Runtime12 comments · 2024-01-08#120All content in window - white on Windows 1012 comments · 2022-04-01#1746Cleartype not working11 comments · 2026-07-21#751Cannot Update Navigation menu items at Runtime9 comments · 2023-09-05
Discussions
#1762Can you guys somehow add support for crossplaform out of the box ?1 comments · 2026-09-20#1667About how NavigationView gets initialized...0 comments · 2026-03-04#1655Is this library related to the built-in Fluent theme in .NET 9?1 comments · 2026-01-27#1654How to set up a multi-level menu in the navigation1 comments · 2026-01-26#1641NavigationViewContentPresenter consumes F5 key and prevents page-level handling2 comments · 2026-01-11#1634Disable navigating back on back button mouse click1 comments · 2026-01-09#1633Hide navigation pane on certain pages0 comments · 2026-01-08#1622Poor WPF-UI.Tray documentation1 comments · 2025-12-26
Latest release
4.3.0 4.3.0 2026-05-04What's Changed fix(controls): Add UpdateAutoSuggestBoxSuggestions call on MenuItemCollection change by @scanfing in https://github.com/lepoco/wpfui/pull/1696 fix(tray): support Unicode for NotifyIcon.TooltipText by @chucker in https://github.com/lepoco/wpfui/pull/1706 feat(controls): Implement SpinButtonPlacementMode.Compact for NumberBox by @chucker in https://github.com/lepoco/wpfui/pull/1709 fix(controls): Change order of triggers for Button by @dkuaf in https://github.com/lepoco/wpfui/pull/1702 Full Changelog: https://github.com/lepoco/wpfui/compare/4.2.1...4.3.0