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
Post a Comment