Issue
I would like control the action of my EditText
ReturnType
how could I do something like this:
TextEdit user = new TextEdit();
user.ReturnType = ReturnType.Go;
Go.Clicked += (sender, e) => {
//Login
};
Thank you
Solution
I assume you mean the Xamarin Forms Entry control. Entry
has a Completed
event that fires regardless of what the ReturnType
is set to.
void Entry_Completed (object sender, EventArgs e)
{
var text = ((Entry)sender).Text; //cast sender to access the properties of the Entry
}
Answered By - Jason
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.