public void OnPropertyChanged(string propertyname) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyname)); Console.WriteLine("calling canexecutechanged " + propertyname); LoginCommand.reValidateButtonState(); RegisterCommand.reValidateButtonState(); } }