void AddTableSectionChild(AddGroupReceiptPageViewModel sender, List <ViewCell> Cells) { memberSection.Clear(); foreach (var cell in Cells) { memberSection.Add(cell); } Button button = new Button { Text = AppResources.txtAddGroupReceiptMemberAddButton, BackgroundColor = Color.Transparent }; button.SetBinding(Button.CommandProperty, nameof(AddGroupReceiptPageViewModel.CGoChoiceFriendsPage)); ViewCell view = new ViewCell() { View = button }; memberSection.Add(view); }
public AddGroupReceiptPage(Group group) { InitializeComponent(); BindingContext = new AddGroupReceiptPageViewModel(group); MessagingCenter.Subscribe <AddGroupReceiptPageViewModel, List <ViewCell> >(this, MessangerKey.AddTableSection, AddTableSectionChild); }