示例#1
0
        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();
            }
        }
示例#2
0
 private void TextEntryOnKeyboardDidEnter(UITextEntry textEntry, string text)
 {
     Hide();
     if (_callback != null)
     {
         _callback(text);
     }
 }
示例#3
0
 private void Password_TextChanged(object sender, UITextEntry e)
 {
     StartupInfo.Password = e.GetCurrentText();
 }
示例#4
0
 private void ServerName_TextChanged(object sender, UITextEntry e)
 {
     StartupInfo.Name = e.GetCurrentText();
 }
示例#5
0
 public TextFieldEntryViewController(UIController uiController)
     : base(uiController, Digitals.SubPageTextEntry, "Text Entry", TimeSpan.FromSeconds(30))
 {
     _textEntry = new UITextEntry(this, Serials.TextEntryFieldText, Digitals.TextEntryEnter);
 }