Пример #1
0
 protected override void OnTextInput(TextCompositionEventArgs e)
 {
     string text = this.Text;
     this.Text = text.Substring(0, this.caretIndex) + e.Text + text.Substring(this.caretIndex);
     ++this.CaretIndex;
     e.Handled = true;
 }
Пример #2
0
 protected virtual void OnTextInput(TextCompositionEventArgs e)
 {
 }