public App() { WindowsAppInitializer.InitializeAsync( WindowsCollectors.Metadata | WindowsCollectors.Session); InitializeComponent(); Suspending += OnSuspending; }