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

MovePrevious() public method

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

            CurrentIndex--;

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