/// <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;
 }
Exemple #2
0
 /// <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();
             */
        }