Back to rankings

lepoco/wpfui

C#wpfui.lepo.co

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.

wpfwpf-uiwpf-controlsxamldotnetcsharpfluentuithemewindows-10windows-11mica
Star Growth
Stars
9.5k
Forks
991
Weekly Growth
Issues
417
5k
Sep 2021Apr 2023Dec 2024Jul 2026
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.

Discord GitHub license Nuget Nuget

Deliver humanitarian aid directly to Ukraine
https://bank.gov.ua/en/about/humanitarian-aid-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.
https://apps.microsoft.com/store/detail/wpf-ui/9N9LKV8R9VGM?cid=windows-lp-hero

winget install 'WPF UI'

WPF UI is delivered via NuGet package manager. You can find the package here:
https://www.nuget.org/packages/wpf-ui/

Visual Studio
The plugin for Visual Studio 2022 let you easily create new projects using WPF UI.
https://marketplace.visualstudio.com/items?itemName=lepo.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:

<Application
  ...
  xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml">
  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ui:ThemesDictionary Theme="Light" />
        <ui:ControlsDictionary />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Application.Resources>
</Application>

If your application does not have MyApp\App.xaml file, use ApplicationThemeManager.Apply(frameworkElement) to apply/update the theme resource in the frameworkElement.

public partial class MainWindow
{
    public MainWindow()
    {
        InitializeComponent();
        ApplicationThemeManager.Apply(this);
    }
}

Now you can create fantastic apps, e.g. with one button:

<ui:FluentWindow
  ...
  xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml">
  <StackPanel>
      <ui:TitleBar Title="WPF UI"/>
      <ui:Card Margin="8">
          <ui:Button Content="Hello World" Icon="{ui:SymbolIcon Fluent24}" />
      </ui:Card>
  </StackPanel>
</ui:FluentWindow>

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 ship a copy of it with this dll. Segoe Fluent Icons is installed by default on Windows 11, but if you want these icons in an application for Windows 10 and below, you must manually add the font to your application's resources.
https://docs.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font
https://docs.microsoft.com/en-us/windows/apps/design/downloads/#fonts

In the app dictionaries, you can add an alternate path to the font

<FontFamily x:Key="SegoeFluentIcons">pack://application:,,,/;component/Fonts/#Segoe Fluent Icons</FontFamily>

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

License

WPF UI is free and open source software licensed under MIT License. You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.

Related repositories
NickeManarin/ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.

C#Microsoft Public Licensegifrecorder
screentogif.com
27.3k2.3k
BeyondDimension/SteamTools

🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。

C#GNU General Public License v3.0steamcsharp
steampp.net
26.2k1.7k
MaterialDesignInXAML/MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.

C#MIT Licensec-sharpmaterial
16.2k3.5k
srwi/EverythingToolbar

Everything integration for the Windows taskbar.

C#Othereverythingeverything-search
14.4k552
JosefNemec/Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.

C#MIT Licenselaunchergaming
playnite.link
13.6k649
lucasg/Dependencies

A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.

C#MIT Licensewindowsdll
11.7k941
File-New-Project/EarTrumpet

EarTrumpet - Volume Control for Windows

C#Otheraudiowpf
eartrumpet.app
11.2k591
MathewSachin/Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes

C#MIT Licensecapturescreenshot
mathewsachin.github.io/Captura/
10.8k2k
YSGStudyHards/DotNetGuide

🌈【C#/.NET/.NET Core学习、工作、面试指南】记录、收集和总结C#/.NET/.NET Core基础知识、学习路线、开发实战、编程技巧练习、学习视频、文章、书籍、项目框架、社区组织、开发必备工具、技术前沿周刊、常见面试题、面试须知、简历模板、人才招聘、以及自己在学习和工作中的一些微薄见解。希望能和大家一起学习,共同进步。如果本知识库能为您提供帮助,别忘了给予支持哦(关注、点赞、分享)💖。

C#MIT Licensemicrosoftasp-net
yuque.com/ysgstudyhard/da6e0c
10.7k1.5k
k1tbyte/Wand-Enhancer

Advanced UX and interoperability extension for Wand (WeMod) app

C#Apache License 2.0wemodcsharp
gitlab.com/kitbyte/wand-enhancer
10.6k28.8k
cefsharp/CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

C#Othercefsharpc-sharp
cefsharp.github.io
10.2k2.9k
MahApps/MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.

C#MIT Licensemahappsmetro
mahapps.com
9.8k2.4k