void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { ProgressIndicator.IsRunning = false; panelCargando.Visibility = System.Windows.Visibility.Collapsed; HtmlReader reader = new HtmlReader(e.Result.ToString()); // List<string> listaPeliculas = reader.listaPeliculas(); //cargarLista(listaPeliculas); ClassCinePlanet planet = reader.listaPeliculas(); List<string> listaIntercalada = planet.listaIntercalada(); for (int i = 0; i < listaIntercalada.Count; i++) { if (i % 2 == 0) { TextBlock txtTitulo = new TextBlock(); txtTitulo.FontSize = 25; txtTitulo.TextWrapping = TextWrapping.Wrap; txtTitulo.FontWeight = FontWeights.Bold; txtTitulo.Text = listaIntercalada.ElementAt(i); stackInfo.Children.Add(txtTitulo); } else { TextBlock txtInfo = new TextBlock(); txtInfo.FontWeight = FontWeights.Bold; txtInfo.TextWrapping = TextWrapping.Wrap; txtInfo.Text = listaIntercalada.ElementAt(i); stackInfo.Children.Add(txtInfo); } } //listaPeliculas.ItemsSource = planet.listaIntercalada(); }