1 write to _textEditor
PresentationFramework (1)
System\windows\Documents\TextEditorDragDrop.cs (1)
73_textEditor = textEditor;
41 references to _textEditor
PresentationFramework (41)
System\windows\Documents\TextEditorDragDrop.cs (41)
92ITextSelection selection = _textEditor.Selection; 94if (_textEditor.UiScope is PasswordBox) 126Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 130_textEditor.Selection.SetSelectionByMouse(cursorPosition, mouseDownPoint); 153ITextSelection selection = _textEditor.Selection; 171IDataObject dataObject = TextEditorCopyPaste._CreateDataObject(_textEditor, /*isDragDrop:*/true); 184_textEditor.UiScope.ReleaseMouseCapture(); 213if (!_textEditor.IsReadOnly) 223_textEditor.UiScope, // dragSource, 236if (!_textEditor.IsReadOnly && // 263if (!_textEditor.IsReadOnly) 266_textEditor.UiScope, TextBox.TextProperty); 284_caretDragDrop = new CaretElement(_textEditor, /*isBlinkEnabled:*/false); 341if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 347FrameworkElement scroller = _textEditor._Scroller; 367double pageHeight = (double)_textEditor.UiScope.GetValue(TextEditor.PageHeightProperty); 401_textEditor.TextView.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below. 403if (_textEditor.TextView.IsValid) 405ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 414bool italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic); 415Brush caretBrush = TextSelection.GetCaretBrush(_textEditor); 439Invariant.Assert(_textEditor.TextView.IsValid); // caller must guarantee this. 442if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target)) 444GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope); 456if (_textEditor.AcceptsRichContent) 508ITextSelection selection = _textEditor.Selection; 528if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 535ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 579e.Handled = TextEditorCopyPaste._DoPaste(_textEditor, e.Data, /*isDragDrop:*/true); 590_textEditor.UiScope.Focus(); 628if (!_textEditor.IsReadOnly && _textEditor.TextView != null && _textEditor.TextView.RenderScope != null) 630Window window = Window.GetWindow(_textEditor.TextView.RenderScope); 654source = PresentationSource.CriticalFromVisual(_textEditor.UiScope); 670return _textEditor.TextView;