WPF-UI 3.0.5

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package WPF-UI --version 3.0.5                
NuGet\Install-Package WPF-UI -Version 3.0.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPF-UI" Version="3.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF-UI --version 3.0.5                
#r "nuget: WPF-UI, 3.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WPF-UI as a Cake Addin
#addin nuget:?package=WPF-UI&version=3.0.5

// Install WPF-UI as a Cake Tool
#tool nuget:?package=WPF-UI&version=3.0.5                

WPF UI Banner Dark WPF UI Banner Light

WPF UI

Created with ❀ in Poland by lepo.co
A simple way to make your application written in WPF keep up with modern design trends. 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 VS 2022 Downloads Sponsors

ua

Deliver humanitarian aid directly to Ukraine.

https://bank.gov.ua/en/about/humanitarian-aid-to-ukraine

Refugees in Poland

Many forms of support for refugees from Ukraine and organizations supporting them are available on the Polish government website
https://pomagamukrainie.gov.pl/chce-pomoc/prywatnie/pomoc-finansowa

ua

πŸš€ 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

πŸ“ What's included?

Name Framework
Wpf.Ui<br />Library that allows you to use all features in your own application NET7 NET6<br/>NETCore3<br/>NETFramework48<br/>NETFramework472<br/>NETFramework462
Wpf.Ui.Gallery<br />Application with all controls. NET7-win
Wpf.Ui.Demo.Mvvm<br />An MVVM app written in WPF .NET 6 where you can test the features. NET7-win
Wpf.Ui.Demo.Simple<br />Simple .NET 7 app with navigation. NET7-win
Wpf.Ui.FontMapper<br />Console app for generating Fluent System Icons enums. NET7
Wpf.Ui.Extension<br />Project for Visual Studio 2022 extension. NETFramework48

πŸ“· Screenshots

Demo App Sample

Monaco Editor

Text Editor Sample

Store App Sample

πŸ—οΈ Works with Visual Studio Designer

VS2022 Designer Preview

🏁 Virtualized panels for displaying thousands controls

WPF UI virtualized wrap panels

❀️ 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

πŸ•ΉοΈ Radiograph

Radiograph is a computer hardware monitoring app that uses WPF UI.

Radiograph screenshot

<img src="https://github.com/lepoco/wpfui/blob/main/.github/assets/microsoft-badge.png?raw=true" width="120">

πŸ“– Documentation

Documentation can be found at https://wpfui.lepo.co/. We also have a tutorial over there for newcomers.

🚧 Development

If you want to propose a new functionality or submit a bugfix, create a Pull Request for the branch development.

πŸ“ 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="Dark" />
        <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>

Special thanks

Crafting apps for .NET without the creators of tools like ReSharper or XAML Styler would never be such a fantastic adventure.

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>

Compilation

Use Visual Studio 2022 and invoke the .sln.

Visual Studio
WPF UI is an Open Source project. You are entitled to download and use the freely available Visual Studio Community Edition to build, run or develop for WPF UI. As per the Visual Studio Community Edition license, this applies regardless of whether you are an individual or a corporate user.

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.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8.1

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages (21)

Showing the top 5 NuGet packages that depend on WPF-UI:

Package Downloads
WPF-UI.Tray

Native tray menu icon support for WPF using the WPF UI library.

WPF-UI.Violeta

WPF UI Violeta is based on WPF UI, and provides the Fluent experience in your known and loved WPF framework. Some new immersive controls like like `Toast`, `Flyout`, `ContentDialog`, `MessageBox` and etc.

MyNet.Wpf

This library is a comprehensive class library designed to simplify the implementation of common GUI functionalities in .NET applications.

Hsm.Ui.Core

UI Core library for Ham Station Master

LYSoft.Libs.Wpf.WpfUI

Package Description

GitHub repositories (34)

Showing the top 5 popular GitHub repositories that depend on WPF-UI:

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
lepoco/wpfui
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.
babalae/better-genshin-impact
📦BetterGI · ζ›΄ε₯½ηš„εŽŸη₯ž - θ‡ͺεŠ¨ζ‹Ύε– | θ‡ͺεŠ¨ε‰§ζƒ… | ε…¨θ‡ͺεŠ¨ι’“ι±Ό(AI) | ε…¨θ‡ͺεŠ¨δΈƒεœ£ε¬ε”€ | θ‡ͺ动伐木 | θ‡ͺ动刷本 | θ‡ͺεŠ¨ι‡‡ι›†/ζŒ–ηŸΏ/ι”„εœ° | 一村龙 - UI Automation Testing Tools For Genshin Impact
BartoszCichecki/LenovoLegionToolkit
Lightweight Lenovo Vantage and Hotkeys replacement for Lenovo Legion laptops.
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
Version Downloads Last updated
4.0.0-rc.3 742 12/6/2024
4.0.0-rc.2 4,868 8/11/2024
4.0.0-rc.1 463 7/24/2024
3.0.5 42,726 7/24/2024
3.0.4 37,378 4/14/2024 3.0.4 is deprecated because it has critical bugs.
3.0.3 9,166 3/24/2024 3.0.3 is deprecated because it is no longer maintained.
3.0.2 2,401 3/19/2024
3.0.1 3,937 3/13/2024
3.0.0 26,076 2/4/2024
2.1.0 36,135 8/19/2023 2.1.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.3 68,183 9/25/2022 2.0.3 is deprecated because it is no longer maintained and has critical bugs.
2.0.2 10,181 7/18/2022 2.0.2 is deprecated because it is no longer maintained and has critical bugs.
2.0.1 3,839 6/18/2022 2.0.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 1,615 6/16/2022 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
1.2.7 7,378 5/7/2022 1.2.7 is deprecated because it is no longer maintained and has critical bugs.
1.2.6 1,728 5/2/2022 1.2.6 is deprecated because it is no longer maintained and has critical bugs.
1.2.4 2,349 4/20/2022 1.2.4 is deprecated because it is no longer maintained and has critical bugs.
1.2.3 1,267 4/16/2022 1.2.3 is deprecated because it is no longer maintained and has critical bugs.
1.2.2 2,785 3/20/2022 1.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.2.1 3,475 12/22/2021 1.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.2.0 890 12/22/2021 1.2.0 is deprecated because it has critical bugs.
1.1.0 1,186 11/12/2021 1.1.0 is deprecated because it has critical bugs.
1.0.0 1,589 10/3/2021 1.0.0 is deprecated because it has critical bugs.