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

Moving to next row in a Grid - Detecting Enter key pressed

$
0
0

Hi,
I am adding Entry controls to a Grid control. I want to move to next row in the Grid when the user press "Enter", I have the code below, but it seems to be not working, at least I don't see the output, also, how can a move the focus to next row? Thanks.

`
var entry = new Entry {
Text = "",
TextColor = Color.Black,
BackgroundColor = Color.White,
};

            entry.Completed += (sender, e) => {
                System.Diagnostics.Debug.WriteLine ("Completed pressed");
                //TODO: move to next line.
            };

            grid.Children.Add (entry, 0, i);

`


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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