Ejemplo n.º 1
0
        private void PopulateList(List <InvoiceModel> list)
        {
            var column = InvoiceRow;

            for (var i = 0; i < list.Count; i++)
            {
                var item = new InvoiceItemTemplate();
                item.BindingContext = list[i];
                column.Children.Add(item);
            }
        }
        private void PopulateList(List <InvoiceModel> list)
        {
            var column = InvoiceRow;

            column.Children.Clear();

            var invoiceItemTapGestureRecognizer = new TapGestureRecognizer();

            invoiceItemTapGestureRecognizer.Tapped += OnInvoiceTapped;

            for (var i = 0; i < list.Count; i++)
            {
                var item = new InvoiceItemTemplate();

                item.BindingContext = list[i];
                item.GestureRecognizers.Add(invoiceItemTapGestureRecognizer);
                column.Children.Add(item);
            }

            actIndicator2.IsRunning = false;
        }