LoriBru
1/14/2019 - 11:18 AM

Task shutdown on close

Setting shutdown mode to OnMainWindowClose so that all pending tasks will terminate when closing the main window.

Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;