Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public AddGroupReceiptPage(Group group)
 {
     InitializeComponent();
     BindingContext = new AddGroupReceiptPageViewModel(group);
     MessagingCenter.Subscribe <AddGroupReceiptPageViewModel, List <ViewCell> >(this, MessangerKey.AddTableSection, AddTableSectionChild);
 }