Example #1
0
        private void assignScrollHandlers(IVerticalScroll verticalScroll)
        {
            if (list == null || list.Count <= VISIBLE_ROWS_COUNT)
            {
                return;
            }

            verticalScroll.ScrollUp += () =>
            {
                mainView.TopRowIndex--;
            };

            verticalScroll.ScrollDown += () =>
            {
                mainView.TopRowIndex++;
            };
        }
Example #2
0
        private void assignScrollHandlers(IVerticalScroll verticalScroll)
        {
            if (list == null || list.Count <= VISIBLE_ROWS_COUNT)
                {
                return;
                }

            verticalScroll.ScrollUp += () =>
                {
                    mainView.TopRowIndex--;
                };

            verticalScroll.ScrollDown += () =>
                {
                    mainView.TopRowIndex++;
                };
        }