private ObservableCollection <AlphaGroupListGroup <Category> > CreateGroup() => new ObservableCollection <AlphaGroupListGroup <Category> >( AlphaGroupListGroup <Category> .CreateGroups(Categories, CultureInfo.CurrentUICulture, s => string.IsNullOrEmpty(s.Name) ? "-" : s.Name[0].ToString().ToUpper()));
private ObservableCollection <AlphaGroupListGroup <CategoryViewModel> > CreateGroup() => new ObservableCollection <AlphaGroupListGroup <CategoryViewModel> >( AlphaGroupListGroup <CategoryViewModel> .CreateGroups(Categories, CultureInfo.CurrentUICulture, s => string.IsNullOrEmpty(s.Name) ? "-" : s.Name[0].ToString().ToUpper(), itemClickCommand: ItemClickCommand, itemLongClickCommand: OpenContextMenuCommand));
private void Loaded() { EditCommand = null; AllPayments.Clear(); foreach (var payment in paymentRepository.LoadRecurringList()) { AllPayments.Add(payment); } Source = new ObservableCollection <AlphaGroupListGroup <Payment> >( AlphaGroupListGroup <Payment> .CreateGroups(AllPayments, CultureInfo.CurrentUICulture, s => s.ChargedAccount.Name)); //We have to set the command here to ensure that the selection changed event is triggered earlier EditCommand = new MvxCommand <Payment>(Edit); }