Пример #1
0
        public void InitializeMiddleCollectionView()
        {
            AttributeImageSource = new CollectionViewImageSourceAttribute(true);
            AttributeImageSource.ImageClickedToController += GetImageSelectedFromCollectionView;             //delegate for image source

            //add nav controller to collectionview
            attributesCollectionView = new CollectionViewAttributes(AttributeImageSource);
            navControllerCollection  = new UINavigationController(attributesCollectionView);
            navControllerCollection.NavigationBar.Translucent  = false;
            navControllerCollection.NavigationBar.BarTintColor = AppColors.DARK_GRAY;

            //Set up Navigation Camera Selection button
            btnAddImg           = new UIBarButtonItem();
            btnAddImg.Title     = "New Image";
            btnAddImg.Clicked  += (sender, e) => AddPhotoButtonHandler(sender, e);
            btnAddImg.TintColor = UIColor.White;
            navControllerCollection.NavigationBar.Items[0].RightBarButtonItem = btnAddImg;
            //navControllerCollection.NavigationBar.Items[0].RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Camera, (sender, e) => AddPhotoButtonHandler(sender, e));
            navControllerCollection.NavigationBar.Items[0].RightBarButtonItem.Enabled = true;

            navControllerCollection.View.Frame  = new CoreGraphics.CGRect(0, 20, this.View.Bounds.Width / 1.87, this.View.Bounds.Height);
            navControllerCollection.View.Bounds = navControllerCollection.View.Frame;
        }
Пример #2
0
 public void setCollectionViewController(CollectionViewAttributes attributesCollectionView)
 {
     this.attributesCollectionView = attributesCollectionView;
 }