title: How to create WPF System Tray Icon when no "Main" host window exists
body: <p><strong>Background</strong></p>
  
  <p>We have an application that sits in the background and utilizes <code>FileSystemWatcher</code> to monitor a folder for new files, when a new file appears it spawns a window.</p>
  
  <p>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).</p>
  
  <p><strong>Question</strong></p>
  
  <p>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?</p>