protected override void BindViews() { base.BindViews(); TableViewMenu = MenuView.TableView; ModelView.CurrentPageName = GetType().Name; if (!TableViewMenu.IsNull()) { TableViewMenu.Source = ComponentViewSourceFactory.CreateForTable(nameof(MenuViewCell), new List <IItemMenu>(), TableViewMenu, crossCellModel: new SideMenuCell(ModelView), register: true); } if (ModelView.TypeMenu != HeaderAreaActionType.Back) { View.OnSwipe((obj) => { switch (obj.Direction) { case UISwipeGestureRecognizerDirection.Left: SwipeLeftToRight(); break; case UISwipeGestureRecognizerDirection.Right: SwipeRightToLeft(); break; } }); } ModelView.MenuOpen = PerformTableTransition; }
protected override void BindViews() { base.BindViews(); TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(HomeCell), new List <IItemMenu>(), TableView, crossCellModel: new HomeViewModel.HomeListCell(ModelView)); }
protected override void BindViews() { base.BindViews(); TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(FeedbackCell), new List <IFeedback>(), TableView, crossCellModel: new FeedbackViewModel.FeedbackListCell(ModelView)); }
protected override void BindViews() { base.BindViews(); CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(StatusCollectionCell), new List <IFeedback>(), CollectionView, crossCellModel: new FeedbackGiveViewModel.StatusFeedbackListCell(ModelView), widthCountCell: Tuple.Create(_heightAndSpaceStatus, FeedbackManager.Instance.GetItem().Count)); }
protected override void BindViews() { base.BindViews(); var source = ComponentViewSourceFactory.CreateForTable(nameof(BeerListCell), new List <List <IBeerContent> >(), TableView, crossCellModel: new BeerListViewModel.BeerListCell(ModelView)); TableView.Source = source; }
protected override void BindViews() { base.BindViews(); var source = ComponentViewSourceFactory.CreateForTable(nameof(OrdersCell), new List <Core.Models.DTO.Order.Get.OrderModel>(), TableView, crossCellModel: new OrdersViewModel.OrdersListCell(ModelView)); TableView.Source = source; }
protected override void BindViews() { base.BindViews(); var source = ComponentViewSourceFactory.CreateForTable(nameof(OrderBarCell), new List <IOrderContent>(), TableView, crossCellModel: new OrderListBaseCell(ModelView)); TableView.Source = source; }
protected override void BindViews() { base.BindViews(); var source = ComponentViewSourceFactory.CreateForTable(nameof(OrderCell), new List <IOrderContent>(), TableView, crossCellModel: new OrderViewModel.OrderListCell(ModelView)); TableView.Source = source; ModelView.GetPayment -= ModelView_GetPayment; ModelView.GetPayment += ModelView_GetPayment; }
protected override void BindViews() { base.BindViews(); CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionCell), new List <IEvent>(), CollectionView, crossCellModel: new EventsViewModel.EventsListTagCell(ModelView)); var daa = CollectionView.CollectionViewLayout as UICollectionViewFlowLayout; daa.ScrollDirection = UICollectionViewScrollDirection.Horizontal; daa.EstimatedItemSize = new CoreGraphics.CGSize(1, 33); CollectionViewSubTag.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionSubTagCell), new List <IEvent>(), CollectionViewSubTag, crossCellModel: new EventsViewModel.EventsListSubTagCell(ModelView)); TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(EventNameCell), new List <IEvent>(), TableView, crossCellModel: new EventsViewModel.EventNameListCell(ModelView)); }