WPF: Create Tray without Window #56
-
Hi! As per title. How do I create a tray icon with a WPF application, without having to show a window on startup? When I add the tray icon into the main window, it is only shown when the Window's Visibility-Property is actually marked 'Visible'. If I set it to 'Hidden' the tray doesn't show. I want to start a tray application with the initial Window being hidden. With traditional WinForms, trays seemed less interlinked with the Window itself, and it worked like charm. Thanks for any suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please check this code: https://github.com/HavenDV/H.NotifyIcon/tree/master/src%2Fapps%2FH.NotifyIcon.Apps.Wpf.Windowless |
Beta Was this translation helpful? Give feedback.
Please check this code: https://github.com/HavenDV/H.NotifyIcon/tree/master/src%2Fapps%2FH.NotifyIcon.Apps.Wpf.Windowless