title: Close Application to System Tray
body: <p>I have a WPF app with an exit "X" button only. A system tray icon is launched when the application starts up. I would like to either "hide" or close the main window to the system tray when "X" is clicked. How can I achieve this?</p>