Пример #1
0
 private void LayoutInvisibleTextField()
 {
     _invisibleTextField = new BackspaceTextField(RectangleF.Empty, this)
     {
         Delegate = new BackspaceDelegate(this)
     };
     AddSubview(_invisibleTextField);
 }
Пример #2
0
 void IRemovableTextField.TextFieldDidEnterBackspace(BackspaceTextField textField)
 {
     bool removeToken = false;
     for (int index = 0; index < _tokens.Count; index++)
     {
         if (_tokens[index].Highlighted)
         {
             TokenDelegate.DidDeleteTokenAtIndex(this, index);
             removeToken = true;
             break;
         }
     }
     if (removeToken == false && _tokens.Count > 0)
     {
         Token token = _tokens.Last();
         token.Highlighted = true;
     }
     SetCursorVisibility();
 }