コード例 #1
0
        async Task LoadMain()
        {
            await Task.Run(async() =>
            {
                var noticias = await _ruborService.GetRubros();
                Console.WriteLine("OK listas");
                Device.BeginInvokeOnMainThread(() =>
                {
                    if (noticias != null)
                    {
                        var vResult = new List <AccordionSource>();

                        foreach (var i in noticias)
                        {
                            var vFirstAccord = new AccordionSource()
                            {
                                ContentItems = new ListCuotas(i._cuotas),
                                rubro        = i
                            };
                            vResult.Add(vFirstAccord);
                        }

                        MainOne.DataSource = vResult;
                        MainOne.DataBind();
                    }

                    Loading(false);
                });
            });
        }
コード例 #2
0
 public XamlExample()
 {
     InitializeComponent();
     MainOne.DataSource = GetSampleData();
     MainOne.DataBind();
     SecOne.DataSource = GetSampleData();
     SecOne.DataBind();
 }
コード例 #3
0
 public Contact()
 {
     InitializeComponent();
     MainOne.DataSource = GetSampleData();
     MainOne.DataBind();
 }