Beispiel #1
0
        private void SetText(string text)
        {
            _changedCount++;
            while (TextDocumentProxy.HasText)
            {
                TextDocumentProxy.DeleteBackward();
            }

            TextDocumentProxy.InsertText(text);
        }
        private void SetText(string text)
        {
            BeginInvokeOnMainThread(SetTextInner);

            void SetTextInner()
            {
                try
                {
                    _changedCount++;
                    while (TextDocumentProxy.HasText)
                    {
                        TextDocumentProxy.DeleteBackward();
                    }

                    TextDocumentProxy.InsertText(text);
                }
                catch (Exception ex)
                {
                    Debug(ex);
                }
            }
        }
 partial void BackspacePressed(NSObject sender)
 {
     TextDocumentProxy.DeleteBackward();
 }