sazr
sazr

Reputation: 25928

Binding Keyword for Key Presses

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

Answers (1)

Joehl
Joehl

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

Related Questions