WPF / .net core WPF supports the system tray

Native WPF does not support system tray icon, need to rely on other manner.

1 Use WinForm support

WPF smallest to the system tray - Arvin.Mei - blog Park

2 Use wpf-notifyicon library

hardcodet/wpf-notifyicon: NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform

Inside the Windowless Sample project, provides the most simple examples.

2 .net core WPF support

For .net core WPF, you need to make some changes to the wpf-notifyicon project to use. See also:

System Tray Icons with WPF in the .NET Core 3.0 Preview - Forty Years of Code

MV10/WPF.NotifyIcon.NetCore3: WPF-NotifyIcon library ported to .NET Core 3.0 Preview 1

Inside the Windowless Sample project, provides the most simple examples.


Original Address:
https://www.cnblogs.com/jasongrass/p/11778108.html

END

Guess you like

Origin www.cnblogs.com/jasongrass/p/11778108.html
Recommended