I am developing an xamarin forms app based on mvvm pattern. I am looking for way to detect if user type Enter button. Event should call an command from viewModel class.
Could you guys share some tips? ;)
I am developing an xamarin forms app based on mvvm pattern. I am looking for way to detect if user type Enter button. Event should call an command from viewModel class.
Could you guys share some tips? ;)
You could use an event to command behavior to bind the Completed event to a command on the view model.
Details here
Completed event is fired on press of enter key see this.
You can attach your event handler on Completed event like this:
testEntry.Completed += (sender, e) => {
};