I make two methodes like this:
private void Next(string argument) { Current = Clients[Clients.IndexOf(Current) + 1]; ((DelegateCommand)NextCommand).RaiseCanExecuteChanged(); }
private void Previous(string argument) { Current = Clients[Clients.IndexOf(Current) - 1]; ((DelegateCommand)PreviousCommand).RaiseCanExecuteChanged();
}
and bind to the xaml:
Every thing work fine. And the next button becomes inactive/grey out when it hits the last post. The problem is it (the Next button) still inactive when I click the Previous button. The Next button becomes inactive all the time. My question is how I could make the Next button active again? Thank for all help.