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); }); }); }
public XamlExample() { InitializeComponent(); MainOne.DataSource = GetSampleData(); MainOne.DataBind(); SecOne.DataSource = GetSampleData(); SecOne.DataBind(); }
public Contact() { InitializeComponent(); MainOne.DataSource = GetSampleData(); MainOne.DataBind(); }