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; }
public CollectionViewAttributes(CollectionViewImageSourceAttribute Source) : base("CollectionViewController", null) { CollectionViewSource = Source; }
public AttributesCollectionViewController(CollectionViewImageSourceAttribute AttributeSource) : base("AttributesCollectionViewController", null) { CollectionViewSource = AttributeSource; }