![]() |
VOOZH | about |
dotnet add package H.NotifyIcon.WinUI --version 2.4.1
NuGet\Install-Package H.NotifyIcon.WinUI -Version 2.4.1
<PackageReference Include="H.NotifyIcon.WinUI" Version="2.4.1" />
<PackageVersion Include="H.NotifyIcon.WinUI" Version="2.4.1" />Directory.Packages.props
<PackageReference Include="H.NotifyIcon.WinUI" />Project file
paket add H.NotifyIcon.WinUI --version 2.4.1
#r "nuget: H.NotifyIcon.WinUI, 2.4.1"
#:package H.NotifyIcon.WinUI@2.4.1
#addin nuget:?package=H.NotifyIcon.WinUI&version=2.4.1Install as a Cake Addin
#tool nuget:?package=H.NotifyIcon.WinUI&version=2.4.1Install as a Cake Tool
** This project is a continuation of the inactive base project to other platforms (WinUI/Uno.Skia.Wpf/Console) - ❤️ https://github.com/hardcodet/wpf-notifyicon ❤️ **
This is an implementation of a NotifyIcon (aka system tray icon or taskbar icon) for .Net 6 WPF/WinUI/Uno.Skia.WPF/Console platforms. It does not just rely on the Windows Forms NotifyIcon component, but is a purely independent control which leverages several features of the WPF/WinUI frameworks in order to display rich tooltips, popups, context menus, and balloon messages. It can be used directly in code or embedded in any XAML file.
👁 NuGet
👁 NuGet
👁 NuGet
👁 NuGet
Install-Package H.NotifyIcon.Wpf
Install-Package H.NotifyIcon.WinUI
Install-Package H.NotifyIcon.Uno
Install-Package H.NotifyIcon.Uno.WinUI
# If you need other platforms, you can use this Core library -
# it allows you to make NotifyIcon even in a console application.
Install-Package H.NotifyIcon
<Window
xmlns:tb="clr-namespace:H.NotifyIcon;assembly=H.NotifyIcon.Wpf" // WPF
xmlns:tb="using:H.NotifyIcon" // WinUI
>
<tb:TaskbarIcon
ToolTipText="ToolTip"
IconSource="/Images/TrayIcons/Logo.ico"
ContextMenu="{StaticResource TrayMenu}"
MenuActivation="LeftOrRightClick"
TrayPopup="{StaticResource TrayStatusPopup}"
PopupActivation="DoubleClick"
TrayToolTip="{StaticResource TrayToolTip}"
/>
</Window>
Windows 11 introduces a new concept called Efficiency Mode.
Since, basically, this library is intended for applications to exist in the background with the ability to interact through TrayIcon, the library implements an API for this mode:
EfficiencyModeUtilities.SetEfficiencyMode(bool value)
WindowExtensions.Hide(this Window window, enableEfficiencyMode: true) // default value
WindowExtensions.Show(this Window window, disableEfficiencyMode: true) // default value
TaskbarIcon.ForceCreate(bool enablesEfficiencyMode = true) // default value
Example 1: 👁 image
<tb:TaskbarIcon>
<tb:TaskbarIcon.IconSource>
<tb:GeneratedIconSource
Text="❤️"
Foreground="Red"
/>
</tb:TaskbarIcon.IconSource>
</tb:TaskbarIcon>
Example 2: 👁 image
<tb:TaskbarIcon
IconSource="/Icons/Error.ico"
>
<tb:TaskbarIcon.IconSource>
<tb:GeneratedIconSource
Text="5"
Foreground="Black"
FontSize="36"
FontWeight="Bold"
/>
</tb:TaskbarIcon.IconSource>
</tb:TaskbarIcon>
Example 3: 👁 image
<tb:TaskbarIcon>
<tb:TaskbarIcon.IconSource>
<tb:GeneratedIconSource
Text="❤️"
Foreground="Red"
FontFamily="Segoe UI Emoji"
Background="AliceBlue"
FontWeight="Bold"
FontSize="38"
/>
</tb:TaskbarIcon.IconSource>
</tb:TaskbarIcon>
Example 4: 👁 image
<tb:TaskbarIcon>
<tb:TaskbarIcon.IconSource>
<tb:GeneratedIconSource
Text="❤️"
BorderThickness="5"
FontSize="46"
>
<tb:GeneratedIconSource.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="128,128">
<GradientStop Color="White" />
<GradientStop Color="Red" />
</LinearGradientBrush>
</tb:GeneratedIconSource.Foreground>
<tb:GeneratedIconSource.BorderBrush>
<LinearGradientBrush StartPoint="0,0" EndPoint="128,128">
<GradientStop Color="White" />
<GradientStop Color="Red" />
</LinearGradientBrush>
</tb:GeneratedIconSource.BorderBrush>
</tb:GeneratedIconSource>
</tb:TaskbarIcon.IconSource>
</tb:TaskbarIcon>
It is recommended to pin the designer icon for easy viewing. To do this, go to Taskbar Settings → Other system tray icons and enable this icon:
👁 image
At the moment, three modes are implemented, each with its own pros and cons.
Availability of various options(depends on the version of WindowsAppSDK you are using):
| Option | Packaged App | Unpackaged App |
|---|---|---|
| Transparency | 🟢 from 1.1.0-preview | 🟢 from 1.1.0-preview |
| Borderless | 🔷 | 🟢 from 1.1.0-preview |
| Animations | 🟢, but with borders | 🟢 from 1.1.0-preview |
| Submenus | 🔷 | 🔷 |
Priority place for bugs: https://github.com/HavenDV/H.NotifyIcon/issues\
Priority place for ideas and general questions: https://github.com/HavenDV/H.NotifyIcon/discussions\
I also have a Discord support channel:
https://discord.gg/g8u2t9dKgE
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows10.0.17763 net10.0-windows10.0.17763 is compatible. |
This package is not used by any NuGet packages.
Showing the top 20 popular GitHub repositories that depend on H.NotifyIcon.WinUI:
| Repository | Stars |
|---|---|
|
Devolutions/UniGetUI
UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
|
|
|
Richasy/Bili.Uwp
适用于新系统UI的哔哩
|
|
|
Jeric-X/SyncClipboard
跨平台剪贴板同步、历史记录管理工具 / Cross-platform cipboard syncing, history management tool
|
|
|
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
|
|
|
ProtonVPN/win-app
Official ProtonVPN Windows app
|
|
|
jayfunc/BetterLyrics
An elegant and deeply customizable lyrics visualizer & versatile music player, built with WinUI3/Win2D | 一款优雅且高度自定义的歌词可视化与全能音乐播放应用,基于 WinUI3/Win2D 构建
|
|
|
FufuLauncher/FufuLauncher
A third-party launcher for Genshin Impact that supports game injection, automatic check-in, and some useful small features.
|
|
|
GoldenPotato137/PotatoVN
一款Visual Novel管理软件
|
|
|
ClementGre/ThreeFingerDragOnWindows
Enables macOS-style three-finger dragging functionality on Windows Precision touchpads.
|
|
|
cnbluefire/HotLyric
热词,为 HyPlayer 和 LyricEase 提供桌面歌词支持。https://www.microsoft.com/store/productId/9MXFFHVQVBV9
|
|
|
Richasy/FantasyCopilot
A new-age AI desktop tool
|
|
|
Richasy/Rodel.Agent
支持主流在线 AI 服务的应用
|
|
|
Valour-Software/Valour
Valour is bringing communities into the future with unique features, blazing performance, and respect for users.
|
|
|
EasyTidy/EasyTidy
EasyTidy A simple file auto-classification tool makes it easy to create automatic workflows with files. / EasyTidy 一个简单的文件自动分类整理工具 轻松创建文件的自动工作流程
|
|
|
insomniachi/Totoro
A Windows 10/11 only application that is a go to for all things anime.
|
|
|
Anthonyy232/Nagi
Rediscover your local music collection with Nagi, a music player focused on speed, simplicity, and privacy. Nagi is built with C# and WinUI 3 to offer a clean, native Fluent experience. It's beautiful, efficient, and respects your privacy.
|
|
|
BestOwl/MyPhone
Connect your mobile devices (Android/iOS/WindowsPhone) to PC
|
|
|
LumiBearStudio/SpanFinder
macOS Finder-style Miller Columns file explorer for Windows — multi-tab, split view, 10 themes, keyboard-first, FTP/SFTP
|
|
|
kurotu/OVR-Lighthouse-Manager
Automated power management for SteamVR base station
|
|
|
Key2Joy/Key2Joy
Simulate a GameController/Joystick using your keyboard and mouse.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.2-dev.22 | 45 | 6/15/2026 |
| 2.4.2-dev.17 | 109 | 5/15/2026 |
| 2.4.2-dev.16 | 55 | 5/15/2026 |
| 2.4.2-dev.15 | 49 | 5/15/2026 |
| 2.4.2-dev.14 | 53 | 5/15/2026 |
| 2.4.2-dev.13 | 59 | 5/12/2026 |
| 2.4.2-dev.11 | 108 | 4/12/2026 |
| 2.4.2-dev.10 | 72 | 4/11/2026 |
| 2.4.2-dev.9 | 75 | 4/10/2026 |
| 2.4.2-dev.8 | 2,239 | 3/14/2026 |
| 2.4.2-dev.7 | 63 | 3/14/2026 |
| 2.4.2-dev.6 | 72 | 3/14/2026 |
| 2.4.1 | 22,766 | 12/1/2025 |
| 2.3.2 | 8,045 | 10/23/2025 |
| 2.3.1 | 2,635 | 10/6/2025 |
| 2.3.0 | 43,964 | 3/1/2025 |
| 2.2.0 | 120,995 | 12/6/2024 |
| 2.1.4 | 11,197 | 10/22/2024 |
| 2.1.3 | 7,593 | 8/18/2024 |
| 2.1.2 | 1,084 | 8/15/2024 |