Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Triggers vs CanExecute

Sorry if this isn't the correct place to post this question but I've been wondering about the differences between using a trigger with a binding condition set to a behavior to do something such as making a button enabled (and thus clickable) based on an entry value vs just using the can execute functionality of a command using the view model entry text value binding.

I've seen threads where both are recommended for use and I've personally implemented them both myself to test them out. Just wanted to see if one of them is considered a best practice vs the other and why.

Best Answer

Answers

Sign In or Register to comment.