2016-07-07 136 views

回答

0

NotifyIcon未在WPF中實現,因爲它在Forms中,但仍可以使用Windows窗體NofityIcon,它駐留在System.Windows.Forms namspace中。

看看這些教程,他們可能包括你的需求:

簡單的解決方案,直接使用的NotifyIcon:http://www.abhisheksur.com/2012/08/notifyicon-with-wpf-applications.html

更先進的解決方案,新的圖書館基礎上具有更多功能的NotifyIcon:http://www.codeproject.com/Articles/36468/WPF-NotifyIcon

有關NotifyIcon的詳細信息,請訪問:http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx