/// <summary> /// Initializes a new instance of the <see cref="CategoryTilePage" /> class. /// </summary> public CategoryTilePage() { InitializeComponent(); //vm = new CategoryPageViewModel(); vm = new SubCategoryPageViewModel(); this.BindingContext = vm; vm.IsLoading = true; }
/// <summary> /// Initializes a new instance of the <see cref="CategoryTilePage" /> class. /// </summary> public CategoryTilePage() { InitializeComponent(); //vm = new CategoryPageViewModel(); vm = new SubCategoryPageViewModel(); this.BindingContext = vm; new Task(async() => { await populateData(); }).Start(); }
public SubCategoryPage(ObservableCollection <SubCategory> category) { InitializeComponent(); vm = new SubCategoryPageViewModel(); vm.Categories = category; this.BindingContext = vm; /* new Task(async () => * { * await getSubCategories(category); * }).Start(); */ }