Hardcodet.Wpf.TaskbarNotification プロキシを使用する systray アイコン ビュー xaml をロードすると、重複した systray アイコンが、正しい機能の systray アイコンの横に空白のアイコンでレンダリングされます。
これを引き起こす Hardcodet.Wpf.TaskbarNotification の既知のバグはありますか?
Hardcodet.Wpf.TaskbarNotification プロキシを使用する systray アイコン ビュー xaml をロードすると、重複した systray アイコンが、正しい機能の systray アイコンの横に空白のアイコンでレンダリングされます。
これを引き起こす Hardcodet.Wpf.TaskbarNotification の既知のバグはありますか?
はい、確かに、実際にアプリを開くとアイコンが作成されますが、アプリを閉じると、アプリを閉じるときにアイコンが削除されないため
、TaskbarNotification コードを開いて破棄するだけです。 public メソッドを呼び出して、Application.Current.Exit イベントで呼び出します。
Application.Current.Exit += new ExitEventHandler(Current_Exit);
void Current_Exit(object sender, ExitEventArgs e)
{
notifyIcon.Dispose();
}