private async void ViewModel_AuthenticationChanged(object sender, EventArgs e)
{
// whenever the AuthenticationChanged event is raised outside of the AccountPicker changing accounts,
// ensure the AccountPicker is synced with the current account
if (!this.isRespondingToSelectedAccountPropertyChanged)
{
Account account = await this.viewModel.GetAccountAsync();
this.picker.SelectedAccount = account;
}
}
}