Exemplo n.º 1
0
        void IScrollReceiver.ScrollTo(ScrollBoundsArgs boundsArgs)
        {
            if (boundsArgs == null)
            {
                throw new ArgumentNullException(nameof(boundsArgs));
            }
            var mode = AutoTail ? ScrollingMode.Tail : ScrollingMode.User;

            _userScrollRequested.OnNext(new ScrollRequest(mode, boundsArgs.PageSize, boundsArgs.FirstIndex));
            PageSize   = boundsArgs.PageSize;
            FirstIndex = boundsArgs.FirstIndex;
        }
Exemplo n.º 2
0
 void IScrollReceiver.ScrollBoundsChanged(ScrollBoundsArgs boundsArgs)
 {
     if (boundsArgs == null)
     {
         throw new ArgumentNullException(nameof(boundsArgs));
     }
     if (!_isSettingScrollPosition)
     {
         _userScrollRequested.OnNext(new ScrollRequest(ScrollReason.User, boundsArgs.PageSize, boundsArgs.FirstIndex));
     }
     PageSize   = boundsArgs.PageSize;
     FirstIndex = boundsArgs.FirstIndex;
 }
Exemplo n.º 3
0
        void IScrollReceiver.ScrollBoundsChanged(ScrollBoundsArgs boundsArgs)
        {
            if (boundsArgs == null)
            {
                throw new ArgumentNullException(nameof(boundsArgs));
            }
            var mode = AutoTail ? ScrollReason.Tail : ScrollReason.User;

            PageSize   = boundsArgs.PageSize;
            FirstIndex = boundsArgs.FirstIndex;

            /*
             *  I need to get rid of this subject as I prefer functional over imperative.
             *  However due to complexities int the interactions with the VirtualScrollPanel,
             *  each time I have tried to remove it all hell has broken loose
             */
            _userScrollRequested.OnNext(new ScrollRequest(mode, boundsArgs.PageSize, boundsArgs.FirstIndex));
        }
Exemplo n.º 4
0
        void IScrollReceiver.ScrollBoundsChanged(ScrollBoundsArgs boundsArgs)
        {
            if (boundsArgs == null) throw new ArgumentNullException(nameof(boundsArgs));
            var mode = AutoTail ? ScrollingMode.Tail : ScrollingMode.User;

            /*
                I need to get rid of this subject as I prefer functional over imperative.
                However due to complexities between the interactions with the VirtualScrollPanel
                each time I have tried to remove it all hell has broken loose
            */
            _userScrollRequested.OnNext(new ScrollRequest(mode, boundsArgs.PageSize,boundsArgs.FirstIndex));
            PageSize = boundsArgs.PageSize;
            FirstIndex = boundsArgs.FirstIndex;
        }
Exemplo n.º 5
0
        void IScrollReceiver.ScrollTo(ScrollBoundsArgs boundsArgs)
        {
            if (boundsArgs == null) throw new ArgumentNullException(nameof(boundsArgs));
            var mode = AutoTail ? ScrollingMode.Tail : ScrollingMode.User;

            _userScrollRequested.OnNext(new ScrollRequest(mode, boundsArgs.PageSize,boundsArgs.FirstIndex));
            PageSize = boundsArgs.PageSize;
            FirstIndex = boundsArgs.FirstIndex;
        }