Using Xamarin Forms, consider the Xaml below.
Be careful, the raisekeyboard
was just implemented for one entry in the application, if you add a new Entry, the KeyboardHelper.KeyboardChanged
is going to shoot, when the focus is in any entry.
KeyboardHelper.KeyboardChanged += (sender, e) =>{
bottomOffset = this.ParentView.Bounds.Bottom - _editor.Bounds.Bottom;
if (KeyboardStatus)
_editor.TranslationY = e.Visible ? -(e.Height - bottomOffset) : 0;
else
_editor.TranslationY = 0;
};