How to make a button active when two entries text are equal with triggers?
Create TextChanged events for textboxes and compare two entries text in the event.
Suppose you have 2 textboxes and one button as below:
var et1 = FindViewById (Resource.Id.text1);
var et2 = FindViewById (Resource.Id.text2);
var buttonSave = FindViewById(Resource.Id.yourButtonId);
Write following code in the event
if(et1.text == te2.text)
buttonSave.Enabled = true;
Hope this helps you.
You can use behaviours.
Check this answer from StackOverflow: https://stackoverflow.com/a/31473781
@VladKolodka.1858 You can use Visibility property or enabled property to make button active or inactive
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies