System.Windows.Data.DataList.MoveNext C# (CSharp) Method

MoveNext() public method

Moves the current index forward.
public MoveNext ( ) : void
return void
        public void MoveNext()
        {
            if (CanMoveNext == false) {
                throw new InvalidOperationException("Cannot call MoveNext at this point.");
            }

            CurrentIndex++;

            RaisePropertyChanged("CanMoveNext");
            RaisePropertyChanged("CanMovePrevious");
            RaisePropertyChanged("CurrentItem");
        }