Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to detect Enter KeyPress in Editor?

$
0
0

In my app there is an multiple line Editor.
So when I press the Enter key there is not Complete event to raise.
I want process the KeyPress event in XAML, but there is no KeyPress event can use in XAML.

My app has android and UWP version.
In android because the user can touch the Send button to do the work, so I don't need handle the Keypress event in android.
In UWP because the user will be press the Enter key to do the work, so I need handle the Keypress event in UWP.

I want to use some event which can write in XAML like this:
<Editor KeyPress="SendButton_KeyPress"/>

But I don't know which function or keywords to use.
Some one help me?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>