public override void attach(ScrollPosition position) { base.attach(position); _PagePosition pagePosition = (_PagePosition)position; pagePosition.viewportFraction = viewportFraction; }
public IPromise animateToPage(int page, TimeSpan duration, Curve curve) { _PagePosition position = (_PagePosition)this.position; return(position.animateTo( position.getPixelsFromPage(page), duration, curve )); }
public void jumpToPage(int page) { _PagePosition position = (_PagePosition)this.position; position.jumpTo(position.getPixelsFromPage(page)); }