wpf - Close Application to System Tray -


i have wpf app exit "x" button only. system tray icon launched when application starts up. either "hide" or close main window system tray when "x" clicked. how can achieve this?

the main thing need change shutdownmode application onexplicitshutdown. can set in app.xaml , app stay alive until call application.shutdown() code (probably based on explicit user command). how handle reopening window tray icon dependent on specific implementation should @ least started.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -