Use behaviors to handle states in Xamarin.Forms

I often see code that for example binds colors and texts for a button when they want to show different color and/or text when app is in different states. For example a button for login/logout the XAML could look like below.

When we have created the behavior we will attach it to the button.

You can read more about behaviors at Xamarin's developer portal,

  3/14/2016 - 1:15 PM