2 implementations of RenderScope
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1212UIElement ITextView.RenderScope
MS\Internal\Documents\TextViewBase.cs (1)
632UIElement ITextView.RenderScope
115 references to RenderScope
PresentationFramework (115)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
944if ((view.RenderScope == null) || (parentView.RenderScope == null)) 954Transform additionalTransform = (Transform)view.RenderScope.TransformToVisual(parentView.RenderScope);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
423if (startView != endView && startView.RenderScope != null && endView.RenderScope != null) 425geometry.Transform = (Transform)endView.RenderScope.TransformToVisual(startView.RenderScope); 940Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
MS\Internal\Documents\ContentHostHelper.cs (7)
57else if (textContainer.TextView != null && textContainer.TextView.RenderScope is IContentHost) 60ich = (IContentHost)textContainer.TextView.RenderScope; 95if (textView.RenderScope is FlowDocumentView) // FlowDocumentScrollViewer 97if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0) 99ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost; 105else if (textView.RenderScope is FrameworkElement) 108FindDocumentPageViews(textView.RenderScope, pageViews);
MS\Internal\Documents\DocumentPageTextView.cs (1)
471/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\DocumentViewerHelper.cs (2)
417positionRect = DocumentViewerHelper.CalculateVisibleRect(positionRect, textView.RenderScope); 420GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer);
MS\Internal\Documents\MultiPageTextView.cs (5)
621/// <see cref="ITextView.RenderScope"/> 1375point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0)); 1392newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true); 1436point = TransformToDescendant(pageTextView.RenderScope, pageRequest.NewSuggestedOffset); 1482point = TransformToDescendant(pageTextView.RenderScope, pointRequest.Point);
MS\Internal\Documents\TextBoxView.cs (1)
1210/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextDocumentView.cs (1)
543/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextParagraphView.cs (1)
448/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextViewBase.cs (5)
135IScrollInfo isi = textView.RenderScope as IScrollInfo; 152FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 168((FrameworkElement)textView.RenderScope).BringIntoView(rect); 287/// <see cref="ITextView.RenderScope"/> 630/// <see cref="ITextView.RenderScope"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
128UIElement uiElement = textView?.RenderScope; 237boundingRect = new Rect(textView.RenderScope.RenderSize); 238uiScope = textView.RenderScope; 243Visual visual = textView.RenderScope; 248GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
59PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 75Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 101PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 121Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 172Visual visual = textView.RenderScope; 177GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 222UIElement uiElement = textView?.RenderScope;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
840if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 847IScrollInfo isi = (IScrollInfo)textView.RenderScope; 901if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
System\Windows\Controls\TextAdaptor.cs (7)
155lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 237UIElement renderScope = textView.RenderScope; 337Rect visibleRect = new Rect(textView.RenderScope.RenderSize); 338Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 344GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 661location = ScreenToClient(location, textView.RenderScope);
System\windows\Documents\CaretElement.cs (5)
43internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.TextView.RenderScope) 45Invariant.Assert(textEditor.TextView != null && textEditor.TextView.RenderScope != null, "Assert: textView != null && RenderScope != null"); 391GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 781return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 859AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.TextView.RenderScope);
System\Windows\Documents\CompositionAdorner.cs (3)
53: base(textView.RenderScope) 55Debug.Assert(textView != null && textView.RenderScope != null); 364_adornerLayer = AdornerLayer.GetAdornerLayer(textView.RenderScope);
System\Windows\Documents\ImmComposition.cs (2)
1240_editor.TextView.RenderScope.UpdateLayout(); 1848get { return _editor.TextView?.RenderScope; }
System\windows\Documents\TextEditor.cs (1)
1320FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement);
System\windows\Documents\TextEditorContextMenu.cs (2)
55Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 269FrameworkElement element = This.TextView.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (20)
125Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 340if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 400_textEditor.TextView.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below. 404ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 441if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target)) 443GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope); 489AdornerLayer layer = AdornerLayer.GetAdornerLayer(TextView.RenderScope); 527if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 534ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 627if (!_textEditor.IsReadOnly && _textEditor.TextView != null && _textEditor.TextView.RenderScope != null) 629Window window = Window.GetWindow(_textEditor.TextView.RenderScope); 769if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 791if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 817if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 838if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 873if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 898if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (7)
134transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 210This.TextView.RenderScope.UpdateLayout(); 227Point mouseDownPoint = e.GetPosition(This.TextView.RenderScope); 338Point mousePoint = e.GetPosition(This.TextView.RenderScope); 429TextEditorMouse.UpdateCursor(This, e.GetPosition(This.TextView.RenderScope)); 446Point mouseMovePoint = e.GetPosition(This.TextView.RenderScope); 757UIElement renderScope = textEditor.TextView.RenderScope;
System\windows\Documents\TextEditorSelection.cs (6)
633ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 637This.TextView.RenderScope.UpdateLayout(); 747ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope); 751This.TextView.RenderScope.UpdateLayout(); 1463ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 1559ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope);
System\windows\Documents\TextEditorTyping.cs (1)
1875TextPointer pointer = (TextPointer)This.TextView.GetTextPositionFromPoint(Mouse.GetPosition(This.TextView.RenderScope), false);
System\Windows\Documents\TextPointerBase.cs (9)
864Invariant.Assert(textView.RenderScope != null, "Null RenderScope"); 885if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView) 888templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 889if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 891templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 896Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 905if (templatedParent != null && templatedParent.IsAncestorOf( /*descendant:*/textView.RenderScope)) 908GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextRangeEditTables.cs (2)
1719_tableColResizeAdorner = new ColumnResizeAdorner(textView.RenderScope); 1721textView.RenderScope,
System\windows\Documents\TextSelection.cs (2)
1972FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 2444DependencyObject element = TextView.RenderScope;
System\Windows\Documents\TextStore.cs (1)
2076return this.TextEditor.TextView.RenderScope;