public Informacion(Category c, MainWindow mainWindow) { this.mainWindow = mainWindow; cate = c.CategoryID; InitializeComponent(); Loaded += Page1_Loaded; Todos.SelectionChanged += Todos_SelectionChanged; Novedades.SelectionChanged += Novedades_SelectionChanged; Destacados.SelectionChanged += Destacados_SelectionChanged; }
public async void CargarListaCategorias() { AnilloProgreso.Visibility = Visibility.Visible; List<Category> ListCategorias = new List<Category>(); Category categoria; try { foreach (var item in await CategoriesServices.GetCategories()) { categoria = new Category() { Name=item.Name,Url=item.Url, CategoryID=item.CategoryID }; ListCategorias.Add(categoria); } ListViewCategorias.ItemsSource = ListCategorias; Serializar(); AnilloProgreso.Visibility = Visibility.Collapsed; } catch (Exception) { ErrorConexion(); } }