Changing the bound values to CanSelectNextPage does not cause the Command.CanExecute to re-evaluate, so the button doesn't update until the Wizard Page is clicked somewhere.
The only way I got the NextButton to update after setting CanSelectNextPage = true was to use CommandManager.InvalidateRequerySuggested();
Comments: ** Comment from web user: BoucherS **
The only way I got the NextButton to update after setting CanSelectNextPage = true was to use CommandManager.InvalidateRequerySuggested();
Comments: ** Comment from web user: BoucherS **
I tried the sample posted in this thread with 1 modification in the WizardPage :
CanSelectNextPage="{Binding IsChecked, ElementName=_checkBox}"
instead of
CanSelectNextPage="False"
where _checkBox is a CheckBox outside from the Wizard. If the CheckBox is unchecked, the "Next" button is unavailable. If the CheckBox is Checked, the "Next" button is available. So it looks good.
Can you attach a sample if you still have the problem ?
Thanks.