public CollectionView(EvasObject parent) : base(parent) { SetLayoutCallback(OnLayout); Scroller = CreateScroller(parent); Scroller.Show(); PackEnd(Scroller); Scroller.Scrolled += OnScrolled; _innerLayout = new EBox(parent); _innerLayout.SetLayoutCallback(OnInnerLayout); _innerLayout.Show(); Scroller.SetContent(_innerLayout); }
public CollectionView(EvasObject parent) : base(parent) { AllowFocus(true); SetLayoutCallback(OnLayout); Scroller = CreateScroller(parent); Scroller.Show(); PackEnd(Scroller); Scroller.Scrolled += OnScrolled; _scrollAnimationStop = new SmartEvent(Scroller, ThemeConstants.Scroller.Signals.StopScrollAnimation); _scrollAnimationStop.On += OnScrollStopped; _innerLayout = new EBox(parent); _innerLayout.SetLayoutCallback(OnInnerLayout); _innerLayout.Show(); Scroller.SetContent(_innerLayout); }