コード例 #1
0
        public override void attach(ScrollPosition position)
        {
            base.attach(position);
            _PagePosition pagePosition = (_PagePosition)position;

            pagePosition.viewportFraction = viewportFraction;
        }
コード例 #2
0
        public IPromise animateToPage(int page, TimeSpan duration, Curve curve)
        {
            _PagePosition position = (_PagePosition)this.position;

            return(position.animateTo(
                       position.getPixelsFromPage(page),
                       duration,
                       curve
                       ));
        }
コード例 #3
0
        public void jumpToPage(int page)
        {
            _PagePosition position = (_PagePosition)this.position;

            position.jumpTo(position.getPixelsFromPage(page));
        }