Based on the code you posted in your comment, I think your problem is that the NotifyPropertyChanged
method is expecting you to pass a property, rather than a method.
So you'd want something like:
public bool CanLogin
{
get
{
return !string.IsNullOrEmpty(Ip) && !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(Port);
}
}
I was going to write something about Expression<Func<TProperty>>
to help explain the error message, but this answer does a fantastic job: Why would you use Expression<Func<T>> rather than Func<T>?