public void SetFocusedTextArea(UITextEntry element) { if (FocusedTextControl != null) { FocusedTextControl.ClearFocus(); FocusedTextControl = null; } FocusedTextControl = element; if (FocusedTextControl != null) { FocusedTextControl.SetFocus(); if (BoundWindow != null) { FocusedTextControl.Resize(BoundWindow.Width, BoundWindow.Height); } if (!InputManager.CapturingStringInput()) { InputManager.StartInputStringCapture(); } } else if (InputManager.CapturingStringInput()) { InputManager.EndInputStringCapture(); } }
private void TextEntryOnKeyboardDidEnter(UITextEntry textEntry, string text) { Hide(); if (_callback != null) { _callback(text); } }
private void Password_TextChanged(object sender, UITextEntry e) { StartupInfo.Password = e.GetCurrentText(); }
private void ServerName_TextChanged(object sender, UITextEntry e) { StartupInfo.Name = e.GetCurrentText(); }
public TextFieldEntryViewController(UIController uiController) : base(uiController, Digitals.SubPageTextEntry, "Text Entry", TimeSpan.FromSeconds(30)) { _textEntry = new UITextEntry(this, Serials.TextEntryFieldText, Digitals.TextEntryEnter); }