private void ReportHidedKeyboard(TouchScreenKeyboard.Status newStatus) { if (newStatus == TouchScreenKeyboard.Status.Canceled) { keepOldTextInField = true; } }
private bool CheckStatusChanged() { if (Keyboard.status == m_LastStatus) { return(false); } m_LastStatus = Keyboard.status; return(true); }
public static void Update() { if (keyboard != null) { TouchScreenKeyboard.Status status = keyboard.status; if (status == TouchScreenKeyboard.Status.Visible || status == TouchScreenKeyboard.Status.Done || status == TouchScreenKeyboard.Status.LostFocus) { if (focused is TextBox) { ((TextBox)focused).Text = keyboard.text; } else if (focused is PasswordBox) { ((PasswordBox)focused).Password = keyboard.text; } } else if (status == TouchScreenKeyboard.Status.Canceled) { if (focused is TextBox) { ((TextBox)focused).Text = undoString; } else if (focused is PasswordBox) { ((PasswordBox)focused).Password = undoString; } } if (status != TouchScreenKeyboard.Status.Visible) { keyboard = null; focused.Keyboard.Focus(null); } } }