I need to create validation: if all fields are filled
IsEnabled=true; //in xaml for next tabItem
If not all fields are filled
IsEnabled=false; //in xaml for next tabItem
I want that validation be always while user see TabItems (Control\Window). I want something like Button's Command that has
public WizardCommand(Action execute, Func<bool> canExecute)
{
if (execute == null)
throw new ArgumentNullException("execute");
this.execute = execute;
if (canExecute != null)
this.canExecute = canExecute;
}
Button's Command call WizardCommand(Action execute, Func canExecute) automatically while button is on form. How make tabitem work like button with command on mvvm with binding?