You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see icon tray when exit from app, and can i help to fix it.
Just add new field in App.xaml.cs public static TaskbarIcon TrayTaskbarIcon;
and write data to this from NotifyIcon.xaml.cs.
To remove icon from TaskBar just need relese it from event protected override void OnExit(ExitEventArgs e) { TrayTaskbarIcon?.Dispose(); _unique.ReleaseMutex(); base.OnExit(e); }
And dont forget remove it from App.xaml and from App.xaml.cs private void App_OnExit(object sender, ExitEventArgs e) { _unique.ReleaseMutex(); }
The text was updated successfully, but these errors were encountered:
I see icon tray when exit from app, and can i help to fix it.
Just add new field in App.xaml.cs
public static TaskbarIcon TrayTaskbarIcon;
and write data to this from NotifyIcon.xaml.cs.
To remove icon from TaskBar just need relese it from event
protected override void OnExit(ExitEventArgs e) { TrayTaskbarIcon?.Dispose(); _unique.ReleaseMutex(); base.OnExit(e); }
And dont forget remove it from App.xaml and from App.xaml.cs
private void App_OnExit(object sender, ExitEventArgs e) { _unique.ReleaseMutex(); }
The text was updated successfully, but these errors were encountered: