public ImageStackAddingSplitViewController() : base()
        {
            View.BackgroundColor  = AppColors.LIGHT_TEAL;
            AttributesTableSource = new TableSourceAttributes();

            //master
            attributesTableViewController = new AttributesTableViewController(AttributesTableSource);
            attributesTableViewController.View.BackgroundColor = AppColors.LIGHT_TEAL;


            navController = new MasterImageAddingTableNavigationController(attributesTableViewController);
            navController.NavigationBar.BackgroundColor = AppColors.DARK_GRAY;

            AttributesTableSource.AttributeRowToController += GetAttributeRowSelected;
            AttributesTableSource.ReloadCollectionView     += ReloadCollectionViewAll;

            //slave
            //AttributeImageSource = new CollectionViewImageSourceAttribute(false);
            AttributeImageSource     = new ImageStackAddingSource();
            attributesCollectionView = new ImageStackAddingCollectionView(AttributeImageSource);
            attributesCollectionView.View.BackgroundColor = AppColors.LIGHT_TEAL;
            PreferredPrimaryColumnWidthFraction           = 0.2f;

            ViewControllers = new UIViewController[] { navController, attributesCollectionView };

            //delegate for finish button
            navController.getFinishButton().Clicked  += BtnFinishedClicked_TouchUpInside;
            navController.getFinishButton().TintColor = AppColors.LIGHT_TEAL;
        }
示例#2
0
        public void InitializeLeftTableView()
        {
            AttributesTableSource = new TableSourceAttributes();
            AttributesTableSource.AttributeRowToController += GetAttributeRowSelected;
            AttributesTableSource.ReloadCollectionView     += ReloadCollectionViewAll;

            attributesTableViewController = new AttributesTableViewController(AttributesTableSource);

            navController = new AttributesMasterTableNavigationController(attributesTableViewController);
        }
示例#3
0
 public void setAttributesTableViewController(AttributesTableViewController attributesTableViewController)
 {
     this.attributesTableViewController = attributesTableViewController;
 }