Ejemplo n.º 1
0
        public ZapCommandItem(ZapScroller zapScroller, int index)
        {
            Debug.Assert(zapScroller != null);
            Debug.Assert(index >= 0);

            _zapScroller = zapScroller;
            _zapScroller.PropertyChanged += new PropertyChangedEventHandler(_zapScroller_PropertyChanged);
            _index = index;

            //KMoore - 2007-01-08
            //BUGBUG: no clue why I can't use binding here. For some reason item changes are not sent through
            //from the collectionView. Need to talk to smart people about this
            Content = _zapScroller.ParentItems[_index];
        }
Ejemplo n.º 2
0
        public FirstPreviousNextLastCommand(ZapScroller owner, ZapCommandType type)
        {
            Debug.Assert(owner != null);
            _owner = owner;
            _type = type;

            _owner.PropertyChanged += new PropertyChangedEventHandler(_owner_PropertyChanged);

            resetExecute();
        }