Exemplo n.º 1
0
        public InfiniteScrollView(IInfiniteScrollViewDelegate <T> del, CGRect frame) : base(frame, new InfiniteScrollViewLayout(frame.Size))
        {
            this.RegisterClassForCell(typeof(T), InfiniteScrollViewCell.Key);
            this.ShowsVerticalScrollIndicator   = false;
            this.ShowsHorizontalScrollIndicator = false;
            this.PagingEnabled = true;

            this.Source = new InfiniteScrollViewSource <T>(del);

            this.ScrollToItem(Foundation.NSIndexPath.FromItemSection(1, 0),
                              UICollectionViewScrollPosition.None, false);
            this.Source.DecelerationEnded(this);
        }
Exemplo n.º 2
0
 public InfiniteScrollViewSource(IInfiniteScrollViewDelegate <T> del)
 {
     _del = del;
 }