public override async void Activated() { base.Activated(); // restore the setting... this.Username = await SettingItem.GetValueAsync(LastUsernameKey); } }