public RestoreCaretAndSelectionUndoAction(TextArea textArea) { textAreaRef = new WeakReference(textArea); caretPos = textArea.Caret.Position; selection = textArea.Selection; }
public TextEditor(TextArea textArea) { this.TextArea = textArea; textArea.SetBinding(TextArea.DocumentProperty, new Binding("Document") { Source = this }); }