I have sometimes needed to know when a button has been clicked and I have not found a native property in C # / Xamarin. For example:
InthisimageabovewehaveaEntry
withaText
(justtoillustrate)writtenPesquisa...
byDefautandwithaToUpper
function(toleavealltextincapitalletter),ifincaseIclickthebuttonLIMPAR
IalreadywantedtobeabletoaddthetextPesquisa...
again,buttheToUpper
functionforcesthetexttobePESQUISA...
.SoIthoughtI'dmakeaif
thatwoulddothefollowing:
if(BotãoLimparPressionado=true){EntryPesquisar="Pesquisa..."
}
else //a função para os outros casos continuariam normais
{
EntryPesquisar.ToUpper
}