public void ClickTab(int selectIndex) { switch (selectIndex) { case 0: bestSellingitems = mainModel.BestSailitems(); OnPropertyChanged("bestSellingitems"); break; case 1: sailingItems = mainModel.SailingItems(); OnPropertyChanged("sailingItems"); break; case 2: searchItems = null; visibleState = "Hidden"; OnPropertyChanged("visibleState"); OnPropertyChanged("searchItems"); break; case 3: bucketList = null; OnPropertyChanged("bucketList"); subTotal = mainModel.GetTotalPrice(); OnPropertyChanged("subTotal"); tex = subTotal / 10; OnPropertyChanged("tex"); totalPrice = subTotal + tex; OnPropertyChanged("totalPrice"); bucketList = mainModel.GetBucketList(); OnPropertyChanged("bucketList"); break; } }