0
當加載我的系統托盤圖標視圖xaml使用Hardcodet.Wpf.TaskbarNotification代理時,重複的系統托盤圖標在正確的功能系統托盤圖標旁邊顯示一個空白圖標。Hardcodet.Wpf.TaskbarNotification空白重複系統托盤圖標
是否有任何已知的錯誤與Hardcodet.Wpf.TaskbarNotification會導致此?
當加載我的系統托盤圖標視圖xaml使用Hardcodet.Wpf.TaskbarNotification代理時,重複的系統托盤圖標在正確的功能系統托盤圖標旁邊顯示一個空白圖標。Hardcodet.Wpf.TaskbarNotification空白重複系統托盤圖標
是否有任何已知的錯誤與Hardcodet.Wpf.TaskbarNotification會導致此?
是的確實有,實際發生的是當你打開你的應用程序有創建圖標,但是當你關閉它時,你的應用程序不會刪除圖標時,他關閉所以...
你只需要打開TaskbarNotification代碼,使Dispose方法公開,並調用它在Application.Current.Exit事件
Application.Current.Exit += new ExitEventHandler(Current_Exit);
void Current_Exit(object sender, ExitEventArgs e)
{
notifyIcon.Dispose();
}
感謝,Dispose()方法已經是公衆然而處置(BOOL處置)不是。我應該讓公衆? – TheWolf 2012-03-20 18:37:01