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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPF.NotifyIcon" Version="1.0.2.510" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WPF.NotifyIcon" Version="1.0.2.510" />
                    
Directory.Packages.props
<PackageReference Include="WPF.NotifyIcon" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WPF.NotifyIcon --version 1.0.2.510
                    
#r "nuget: WPF.NotifyIcon, 1.0.2.510"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WPF.NotifyIcon@1.0.2.510
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WPF.NotifyIcon&version=1.0.2.510
                    
Install as a Cake Addin
#tool nuget:?package=WPF.NotifyIcon&version=1.0.2.510
                    
Install as a Cake Tool

[‼️] 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: WPF.NotifyIcon 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:

ToolTip

TrayMenu:

ToolTip

BalloonTip:

Light:

ToolTip ToolTip ToolTip ToolTip ToolTip

Dark:

ToolTip ToolTip ToolTip ToolTip ToolTip

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last Updated
1.0.2.510 88 5/10/2025
1.0.1.510 88 5/10/2025
1.0.0.427 160 4/28/2025