public ExportDialog() { InitialPage.Created += async(sender, e) => { if (await GetExportStatusAsync() is ExportStatus.FinishedSuccessfully) { InitialPage.Navigate(FinishedSuccessfullyPage); } else { InitialPage.Navigate(FinishedWithErrorPage); } }; }