WPF.NotifyIcon
1.0.2.510
dotnet add package WPF.NotifyIcon --version 1.0.2.510
NuGet\Install-Package WPF.NotifyIcon -Version 1.0.2.510
<PackageReference Include="WPF.NotifyIcon" Version="1.0.2.510" />
<PackageVersion Include="WPF.NotifyIcon" Version="1.0.2.510" />
<PackageReference Include="WPF.NotifyIcon" />
paket add WPF.NotifyIcon --version 1.0.2.510
#r "nuget: WPF.NotifyIcon, 1.0.2.510"
#:package WPF.NotifyIcon@1.0.2.510
#addin nuget:?package=WPF.NotifyIcon&version=1.0.2.510
#tool nuget:?package=WPF.NotifyIcon&version=1.0.2.510
[‼️] This is basic content for more info please visit GitHub repositories for more information.
<div align="center"> <img src="https://github.com/FastChen/WPF.NotifyIcon/blob/master/images/logo_256x.png" alt="WPF.NotifyIcon" height="160" width="160"/> <h1>WPF.NotifyIcon</h1> <h3>WPF Native NotifyIcon</h3> <img src="https://img.shields.io/github/stars/fastchen/WPF.NotifyIcon?label=Star&logo=github"/> <a href="https://github.com/FastChen/WPF.NotifyIcon/issues"><img src="https://img.shields.io/github/issues/fastchen/WPF.NotifyIcon?label=Issues"/></a> <h4><a href="https://github.com/FastChen/WPF.NotifyIcon/blob/master/README.md">中文</a> / English</h4> </div>
Feature
- Only 10Kb Size
- Use WinAPI
Shell_NotifyIcon
- Support .NET4.62 Framework to .NET9
- Windows BalloonTip
- Like WinForm NotifyIcon Control
Usage
Step 1: Install Package WPF.NotifyIcon
on Nuget
Visit Nuget:WPF.NotifyIcon - Nuget
CommandLine: Install-Package WPF.NotifyIcon
Visual Studio Nuget:
Step 2: NotifyIcon = new();
you can check samples\WPF.NotifyIcon.Demo
get more info.
// Create new NotifyIcon
private NotifyIcon _notifyIcon = new();
public MainWindow()
{
InitializeComponent();
// Get Icon.Handle from self
var icon = _notifyIcon.GetIconHandleFromFile(Environment.ProcessPath);
// Create Tray in taskbar
_notifyIcon.Create(this, icon, "HELLO!\nI'm here!");
// Action Event
_notifyIcon.LeftClick += ShowWindow;
_notifyIcon.RightClick += ShowContextMenu;
// Popup ShowBalloonTip
_notifyIcon.ShowBalloonTip(5000, "Hello!", "WPF.NotifyIcon!", ToolTipIcon.None);
// Update ToolTip
_notifyIcon.SetToolTip("Wow!");
// use Icon property get; set;
_notifyIcon.Icon = IntPtr.Zero;
}
the ToolTipIcon
Support icon list:
public enum ToolTipIcon
{
/// <summary>
/// No icon.
/// </summary>
None = 0,
/// <summary>
/// Info icon.
/// </summary>
Info = 1,
/// <summary>
/// Warning icon.
/// </summary>
Warning = 2,
/// <summary>
/// Error icon.
/// </summary>
Error = 3,
/// <summary>
/// Use Application icon.
/// </summary>
Custom = 4,
}
Images
ToolTip:
TrayMenu:
BalloonTip:
Light:
Dark:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 is compatible. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
-
net9.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.