Reputation: 25928
In MVVM Cross is there a binding keyword for KeyPress
?
For example;
<EditText
android:id="@+id/search"
local:MvxBind="Text Search KeyPress OnKeyPress"
android:hint="Search Places" />
I want to detect when the user presses Return
/Enter
so I can navigate to the next ViewModel SearchViewModel
Upvotes: 0
Views: 186
Reputation: 3701
Not. There is no built in way to do that. Look at the answer from stuart in another thread.
Short answer: Just make your own implementation of EditText and you can make a Command you can bind on.
Upvotes: 1