Ejemplo n.º 1
0
        public SplitViewContoller () : base()
        {
            sd = new SplitDelegate ();
            Delegate = sd;

            animalsController = new AnimalsController ();
            layout = new UICollectionViewFlowLayout (){
                SectionInset = new UIEdgeInsets (20,20,20,20)
            };

            animalImageController = new BingImageGridViewController (layout);

            animalsController.AnimalSelected+= (sender, e) => {
                animalImageController.LoadImages (e.Animal);
            };

            ViewControllers = new UIViewController[] {
                animalsController,
                animalImageController
            };
        }
Ejemplo n.º 2
0
        public SplitViewContoller() : base()
        {
            sd       = new SplitDelegate();
            Delegate = sd;

            animalsController = new AnimalsController();
            layout            = new UICollectionViewFlowLayout()
            {
                SectionInset = new UIEdgeInsets(20, 20, 20, 20)
            };

            animalImageController = new BingImageGridViewController(layout);

            animalsController.AnimalSelected += (sender, e) => {
                animalImageController.LoadImages(e.Animal);
            };

            ViewControllers = new UIViewController[] {
                animalsController,
                animalImageController
            };
        }