Beispiel #1
0
        public void SetUserPhotosCollectionView()
        {
            _collectionSource = new UserPhotosCollectionViewSource(this)
            {
                ItemsSource = SourceList,
            };
            _collectionLayout = new GridLayout();

            Source = _collectionSource;
            CollectionViewLayout = _collectionLayout;
            LayoutIfNeeded();

            ReloadData();
            ReloadInputViews();
        }
Beispiel #2
0
        public void SetUserLikedPhotosCollectionView()
        {
            _collectionSource = new UsersLikedPhotosCollectionViewSource(this)
            {
                ItemsSource = SourceList
            };
            _collectionLayout = new ListLayout
            {
                ItemHeight = UILikedPhotoCell.ImageHeight + 400 // TODO: Fix
            };

            Source = _collectionSource;
            CollectionViewLayout = _collectionLayout;
            LayoutIfNeeded();


            ReloadData();
        }