Hardcodet.NotifyIcon.Wpf.NetCore
1.1.5
dotnet add package Hardcodet.NotifyIcon.Wpf.NetCore --version 1.1.5
NuGet\Install-Package Hardcodet.NotifyIcon.Wpf.NetCore -Version 1.1.5
<PackageReference Include="Hardcodet.NotifyIcon.Wpf.NetCore" Version="1.1.5" />
paket add Hardcodet.NotifyIcon.Wpf.NetCore --version 1.1.5
#r "nuget: Hardcodet.NotifyIcon.Wpf.NetCore, 1.1.5"
// Install Hardcodet.NotifyIcon.Wpf.NetCore as a Cake Addin
#addin nuget:?package=Hardcodet.NotifyIcon.Wpf.NetCore&version=1.1.5
// Install Hardcodet.NotifyIcon.Wpf.NetCore as a Cake Tool
#tool nuget:?package=Hardcodet.NotifyIcon.Wpf.NetCore&version=1.1.5
H.NotifyIcon.WPF - NotifyIcon for .Net Core 3.1 and .Net 5 WPF
** The official version now supports .Net Core/.Net 5, I recommend using it - https://github.com/hardcodet/wpf-notifyicon**
This is an implementation of a NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. It does not just rely on the Windows Forms NotifyIcon component, but is a purely independent control which leverages several features of the WPF framework 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
Install-Package Hardcodet.NotifyIcon.Wpf.NetCore
Usage
The sample below shows some of the properties of the control. For a more comprehensive sample, have a look at the sample application that comes with the download.
<Window
x:Class="Hardcodet.NetDrives.UI.SystemTray.Sample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tb="http://www.hardcodet.net/taskbar">
<tb:TaskbarIcon x:Name="myNotifyIcon"
Visibility="Visible"
ToolTipText="Fallback ToolTip for Windows xp"
IconSource="/Images/TrayIcons/Logo.ico"
ContextMenu="{StaticResource TrayMenu}"
MenuActivation="LeftOrRightClick"
TrayPopup="{StaticResoure TrayStatusPopup}"
PopupActivation="DoubleClick"
TrayToolTip="{StaticResource TrayToolTip}"
/>
</Window>
Features
- Custom Popups (interactive controls) on mouse clicks.
- Customized ToolTips (Vista and above) with fallback mechanism for xp/2003.
- Rich event model including attached events to trigger animations in Popups, ToolTips, and balloon messages. I just love that.
- Full support for standard Windows balloons, including custom icons.
- Custom balloons that pop up in the tray area. Go wild with styles and animations 🙂
- Support for WPF context menus.
- You can define whether to show Popups on left-, right-, double-clicks etc. The same goes for context menus.
- Simple data binding for Popups, ToolTips and custom balloons through attached properties and derived data context.
- Command support for single / double clicks on the tray icon.
Tutorial and Support
A comprehensive tutorial that complements the attached sample application can be found on the Code Project: http://www.codeproject.com/KB/WPF/wpf_notifyicon.aspx
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net5.0-windows7.0 net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net6.0-windows7.0 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows net7.0-windows7.0 |
.NET Core | netcoreapp3.1 |
.NET Framework | net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
-
.NETCoreApp 3.1
- H.NotifyIcon (>= 1.0.18)
- System.Drawing.Common (>= 6.0.0)
-
.NETFramework 4.5.1
- H.NotifyIcon (>= 1.0.18)
-
net5.0-windows7.0
- H.NotifyIcon (>= 1.0.18)
- System.Drawing.Common (>= 6.0.0)
-
net6.0-windows7.0
- H.NotifyIcon (>= 1.0.18)
- System.Drawing.Common (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (7)
Showing the top 5 popular GitHub repositories that depend on Hardcodet.NotifyIcon.Wpf.NetCore:
Repository | Stars |
---|---|
ModernFlyouts-Community/ModernFlyouts
A modern Fluent Design replacement for the old Metro themed flyouts present in Windows.
|
|
uxsoft/AppleWirelessKeyboard
Windows companion application for the Apple Wireless Keyboard which makes Fn and Eject keys work
|
|
FancyWM/fancywm
FancyWM - a dynamic tiling window manager for Windows 10/11
|
|
Milkitic/Osu-Player
A multifunctional media player for osu and osuer. Modern interface with WPF.
|
|
TonCunha/multi-microsoft-teams
Launcher to manage profiles and open multiple instances of Microsoft Teams desktop version. It's compatible with many accounts and organizations (tenants).
|
⭐ Last 10 features:
- feat: Added rough implementation for WinUI. 2022-02-25
- feat: To auto-releasing. 2022-02-23
- feat: Added WinUI project. 2022-02-23
- feat(WPF): Added WpfAnalyzers. 2022-02-23
- feat: Moved some platform agnostic extensions to .Net Standard library. 2022-01-29
- feat(ci): to reusable workflow. 2022-01-29
- feat: Updated to .Net 6. 2022-01-29
- feat: To .csproj AssemblyInfo. 2022-01-29
- feat: Updated to latest. 2022-01-29
- feat: To H.NotifyIcon core Interop package. 2021-01-22
🐞 Last 10 bug fixes:
- fix: Fixed CI. 2022-02-25
- fix: Fixed WPF0150. 2022-02-23