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 Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net5.0-windows7.0 is compatible. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.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 (8)
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.
|
|
FancyWM/fancywm
FancyWM - Dynamic Tiling Window Manager for Windows
|
|
MediaPortal/MediaPortal-2
Development of MediaPortal 2
|
|
uxsoft/AppleWirelessKeyboard
Windows companion application for the Apple Wireless Keyboard which makes Fn and Eject keys work
|
|
Milkitic/Osu-Player
A multifunctional media player for osu and osuer. Modern interface with WPF.
|
⭐ 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