![]() |
VOOZH | about |
dotnet add package H.NotifyIcon.Wpf --version 2.4.1
NuGet\Install-Package H.NotifyIcon.Wpf -Version 2.4.1
<PackageReference Include="H.NotifyIcon.Wpf" Version="2.4.1" />
<PackageVersion Include="H.NotifyIcon.Wpf" Version="2.4.1" />Directory.Packages.props
<PackageReference Include="H.NotifyIcon.Wpf" />Project file
paket add H.NotifyIcon.Wpf --version 2.4.1
#r "nuget: H.NotifyIcon.Wpf, 2.4.1"
#:package H.NotifyIcon.Wpf@2.4.1
#addin nuget:?package=H.NotifyIcon.Wpf&version=2.4.1Install as a Cake Addin
#tool nuget:?package=H.NotifyIcon.Wpf&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-windows7.0 net10.0-windows7.0 is compatible. |
| .NET Framework | net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
Showing the top 1 NuGet packages that depend on H.NotifyIcon.Wpf:
| Package | Downloads |
|---|---|
|
ChrisKaczor.Wpf.Windows.FloatingStatusWindow
Library to create a "floating" window that blends in with the Windows desktop and allows displaying status text. |
Showing the top 11 popular GitHub repositories that depend on H.NotifyIcon.Wpf:
| Repository | Stars |
|---|---|
|
2dust/v2rayN
A GUI client for Windows, Linux and macOS, support Xray and sing-box and others
|
|
|
nguyenquyhy/Flight-Tracker-StreamDeck
A Stream Deck plugin to interact with Microsoft Flight Simulation
|
|
|
iXab3r/MicSwitch
MicSwitch is a tool which allows you to mute/unmute your microphone using a predefined hotkey
|
|
|
jxq1997216/AITranslator
δ½Ώη¨ε€§θ―θ¨ζ¨‘εζ₯ηΏ»θ―MToolε―ΌεΊηεΎ
ηΏ»θ―ζδ»ΆηεΎεεUIθ½―δ»Ά
|
|
|
ResetXPDR/MSFS_AutoFPS
MSFS2020_AutoFPS updated to support both MSFS 2020 and 2024
|
|
|
danielchalmers/DesktopClock
A digital clock for your desktop!
|
|
|
Fragtality/PilotsDeck
Directly control the FlightSim from your StreamDeck!
|
|
|
TypeWhisper/typewhisper-win
TypeWhisper for Windows - Local speech-to-text with translation
|
|
|
InkCanvasForClass/community
InkCanvasForClass Community Open Source Project
|
|
| mann1x/CPUDoc | |
|
63BeetleSmurf/PinnyNotes
Pinny Notes is a sticky note application with a button to "pin" a note making it always on top above other windows. A number of other handy tools are also available via the right click menus.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.2-dev.22 | 47 | 6/15/2026 |
| 2.4.2-dev.17 | 173 | 5/15/2026 |
| 2.4.2-dev.16 | 52 | 5/15/2026 |
| 2.4.2-dev.15 | 53 | 5/15/2026 |
| 2.4.2-dev.14 | 56 | 5/15/2026 |
| 2.4.2-dev.13 | 64 | 5/12/2026 |
| 2.4.2-dev.11 | 87 | 4/12/2026 |
| 2.4.2-dev.10 | 65 | 4/11/2026 |
| 2.4.2-dev.9 | 73 | 4/10/2026 |
| 2.4.2-dev.8 | 92 | 3/14/2026 |
| 2.4.2-dev.7 | 71 | 3/14/2026 |
| 2.4.2-dev.6 | 75 | 3/14/2026 |
| 2.4.1 | 64,718 | 12/1/2025 |
| 2.3.2 | 10,198 | 10/23/2025 |
| 2.3.1 | 6,478 | 10/6/2025 |
| 2.3.0 | 32,344 | 3/1/2025 |
| 2.2.0 | 15,828 | 12/6/2024 |
| 2.1.4 | 10,786 | 10/22/2024 |
| 2.1.3 | 9,469 | 8/18/2024 |
| 2.1.2 | 1,273 | 8/15/2024 |