コード例 #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);
        }
コード例 #2
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);
        }