Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect guard properties / methods for bound properties #44

Closed
nigel-sampson opened this issue Jun 5, 2014 · 2 comments
Closed

Respect guard properties / methods for bound properties #44

nigel-sampson opened this issue Jun 5, 2014 · 2 comments

Comments

@nigel-sampson
Copy link
Contributor

Not 100% sure if this would be possible or even a good idea yet, but could we respect guard properties when bound to methods as well?

http://stackoverflow.com/questions/23815239/why-is-the-guard-property-for-a-toggle-button-ignored-when-its-name-matches-a-p/

From a convention point of view I don't think it'll always make sense and make for some weirdly named view model properties.

For instance:

public string Username
{
    get; set;
}

public bool CanUsername
{
    get { return LoginMethod == LoginMethods.Username; }
}
@tibel
Copy link
Contributor

tibel commented Dec 21, 2014

I don't think this is a good idea, it would make everything weird.

@nigel-sampson
Copy link
Contributor Author

Yeah, thinking about it some more it would add too much confusion. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants