Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 只有托盘图标的 WPF 应用程序
如何编写仅在应用程序启动后才在系统托盘上运行的 WPF 应用程序?
删除 App.xaml 文件并自己实现 Main 方法,无需任何 window.Show() 等。您需要为 notifyicon 使用 WinForm-references。