public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state) { string error; try { if (TrophyScrollingCollection == null || !TrophyScrollingCollection.Any()) { if (!string.IsNullOrEmpty(parameter as string)) { Username = parameter as string; } else { Username = Shell.Instance.ViewModel.CurrentUser.Username; } SetTrophyList(); } return; } catch (Exception ex) { error = ex.Message; } await ResultChecker.SendMessageDialogAsync(error, false); }
public async void SetupSampleData() { var items = await SampleData.GetSampleTrophyFeed(); foreach (var item in items) { TrophyScrollingCollection.Add(item); } }
public void SetTrophyList(string userName) { TrophyScrollingCollection = new TrophyScrollingCollection { CompareUsername = Locator.ViewModels.MainPageVm.CurrentUser.Username, Username = userName, Offset = 0 }; }
public void SetTrophyList() { TrophyScrollingCollection = new TrophyScrollingCollection { CompareUsername = Shell.Instance.ViewModel.CurrentUser.Username, Username = Username, Offset = 0 }; }
public void SetTrophyList(string userName) { TrophyScrollingCollection = new TrophyScrollingCollection { UserAccountEntity = App.UserAccountEntity, Username = userName, Offset = 0 }; }
public TrophiesViewModel() { if (DesignMode.DesignModeEnabled) { TrophyScrollingCollection = new TrophyScrollingCollection() { HasMoreItems = false }; } }
public void SetTrophyList(string userName) { Username = userName; TrophyScrollingCollection = new TrophyScrollingCollection { CompareUsername = Locator.ViewModels.MainPageVm.CurrentUser.Username, Username = userName, Offset = 0 }; }