void HandleTextInput (object sender, PreviewTextInputEventArgs e) { text += e.Text; e.Handled = true; QueueDraw (); }
protected override void OnPreviewTextInput(PreviewTextInputEventArgs e) { e.Handled = true; if (e.Text != "\b") Source.InsertText(e.Text); }