Inheritance: ListPager
Esempio n. 1
0
        internal UIListPagerCommand(UIListPager ulp, UIListPagerCommandType type, int pageNumber)
        {
            Debug.Assert(ulp != null);
            Debug.Assert(type == UIListPagerCommandType.SpecificPage || pageNumber == -1);

            _pager = ulp;
            _pager.CurrentPageIndexChanged += _pager_PropertyChanged;
            _pager.ItemsSourceChanged      += _pager_PropertyChanged;
            _pager.PageSizeChanged         += _pager_PropertyChanged;

            _type      = type;
            _pageIndex = pageNumber;

            _canExecuteCache = canExecute();
        }
Esempio n. 2
0
        internal UIListPagerCommand(UIListPager ulp, UIListPagerCommandType type, int pageNumber)
        {
            Debug.Assert(ulp != null);
            Debug.Assert(type == UIListPagerCommandType.SpecificPage || pageNumber == -1);

            _pager = ulp;
            _pager.CurrentPageIndexChanged += _pager_PropertyChanged;
            _pager.ItemsSourceChanged += _pager_PropertyChanged;
            _pager.PageSizeChanged += _pager_PropertyChanged;

            _type = type;
            _pageIndex = pageNumber;

            _canExecuteCache = canExecute();
        }