Yesterday, I wrote about one of the new features in Xamarin.Forms 1.3 (Technology Preview 2), Styles. Today I’ll take a first look at Triggers.
Triggers
The key idea of Triggers is “When this happens, do that.” More specifically, “When this property has that value, then set this other property to this new value.” Huh? Perhaps this is easier to show than to explain.
Let’s suppose we’re building a form and we’d like to enhance the Entry control so that when the user is entering data the text color is blue, but when they are done the text color turns black.
Step one is to create a style in the Resource Dictionary and to give that Style a set of Triggers… Continued here