예제 #1
0
        public BingImageGridViewController(UICollectionViewLayout layout) : base(layout)
        {
            imageUrls = new List <string> ();

            bing = new Bing((results) => {
                InvokeOnMainThread(delegate {
                    imageUrls = results;
                    CollectionView.ReloadData();
                });
            });

            bing.ImageSearch();

            CollectionView.ContentInset = new UIEdgeInsets(10, 10, 10, 10);
        }
        public BingImageGridViewController (UICollectionViewLayout layout) : base (layout)
        {
            imageUrls = new List<string> ();

            bing = new Bing ((results) => {
                InvokeOnMainThread (delegate {   
                    imageUrls = results;
                    CollectionView.ReloadData ();
                });
            });

            bing.ImageSearch ();

            CollectionView.ContentInset = new UIEdgeInsets (10, 10, 10, 10);
        }