Background
We have an application that sits in the background and utilizes FileSystemWatcher
to monitor a folder for new files, when a new file appears it spawns a window.
What I need to do is create a system tray icon for this application so that we can add simple context menu items to it (being able to close the app without going into task manager is the biggest one).
Question
All of the search results for how to implement a system tray icon point to examples of how to add it to a WPF window not the application itself, since my app doesn't have a main window and spawns windows when an event occurs how can I implement this?