2 implementations of RenderScope
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1255UIElement ITextView.RenderScope
MS\Internal\Documents\TextViewBase.cs (1)
635UIElement ITextView.RenderScope
115 references to RenderScope
PresentationFramework (115)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
955if ((view.RenderScope == null) || (parentView.RenderScope == null)) 965Transform additionalTransform = (Transform)view.RenderScope.TransformToVisual(parentView.RenderScope);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
430if (startView != endView && startView.RenderScope != null && endView.RenderScope != null) 432geometry.Transform = (Transform)endView.RenderScope.TransformToVisual(startView.RenderScope); 943Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
MS\Internal\Documents\ContentHostHelper.cs (7)
61else if (textContainer.TextView != null && textContainer.TextView.RenderScope is IContentHost) 64ich = (IContentHost)textContainer.TextView.RenderScope; 99if (textView.RenderScope is FlowDocumentView) // FlowDocumentScrollViewer 101if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0) 103ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost; 109else if (textView.RenderScope is FrameworkElement) 112FindDocumentPageViews(textView.RenderScope, pageViews);
MS\Internal\Documents\DocumentPageTextView.cs (1)
474/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\DocumentViewerHelper.cs (2)
420positionRect = DocumentViewerHelper.CalculateVisibleRect(positionRect, textView.RenderScope); 423GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer);
MS\Internal\Documents\MultiPageTextView.cs (5)
624/// <see cref="ITextView.RenderScope"/> 1378point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0)); 1395newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true); 1439point = TransformToDescendant(pageTextView.RenderScope, pageRequest.NewSuggestedOffset); 1485point = TransformToDescendant(pageTextView.RenderScope, pointRequest.Point);
MS\Internal\Documents\TextBoxView.cs (1)
1253/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextDocumentView.cs (1)
547/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextParagraphView.cs (1)
455/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextViewBase.cs (5)
138IScrollInfo isi = textView.RenderScope as IScrollInfo; 155FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 171((FrameworkElement)textView.RenderScope).BringIntoView(rect); 290/// <see cref="ITextView.RenderScope"/> 633/// <see cref="ITextView.RenderScope"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
131UIElement uiElement = textView?.RenderScope; 240boundingRect = new Rect(textView.RenderScope.RenderSize); 241uiScope = textView.RenderScope; 246Visual visual = textView.RenderScope; 251GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
64PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 80Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 106PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 126Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 177Visual visual = textView.RenderScope; 182GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 227UIElement uiElement = textView?.RenderScope;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
848if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 855IScrollInfo isi = (IScrollInfo)textView.RenderScope; 909if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
System\Windows\Controls\TextAdaptor.cs (7)
156lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 241UIElement renderScope = textView.RenderScope; 347Rect visibleRect = new Rect(textView.RenderScope.RenderSize); 348Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 354GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 671location = ScreenToClient(location, textView.RenderScope);
System\windows\Documents\CaretElement.cs (5)
50internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.TextView.RenderScope) 52Invariant.Assert(textEditor.TextView != null && textEditor.TextView.RenderScope != null, "Assert: textView != null && RenderScope != null"); 396GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 784return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 862AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.TextView.RenderScope);
System\Windows\Documents\CompositionAdorner.cs (3)
57: base(textView.RenderScope) 59Debug.Assert(textView != null && textView.RenderScope != null); 366_adornerLayer = AdornerLayer.GetAdornerLayer(textView.RenderScope);
System\Windows\Documents\ImmComposition.cs (2)
1262_editor.TextView.RenderScope.UpdateLayout(); 1870get { return _editor.TextView == null ? null : _editor.TextView.RenderScope; }
System\windows\Documents\TextEditor.cs (1)
1339FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement);
System\windows\Documents\TextEditorContextMenu.cs (2)
58Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 272FrameworkElement element = This.TextView.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (20)
143Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 358if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 418_textEditor.TextView.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below. 422ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 459if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target)) 461GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope); 507AdornerLayer layer = AdornerLayer.GetAdornerLayer(TextView.RenderScope); 545if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 552ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 645if (!_textEditor.IsReadOnly && _textEditor.TextView != null && _textEditor.TextView.RenderScope != null) 647Window window = Window.GetWindow(_textEditor.TextView.RenderScope); 787if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 809if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 835if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 856if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 891if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 916if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (7)
149transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 228This.TextView.RenderScope.UpdateLayout(); 245Point mouseDownPoint = e.GetPosition(This.TextView.RenderScope); 356Point mousePoint = e.GetPosition(This.TextView.RenderScope); 447TextEditorMouse.UpdateCursor(This, e.GetPosition(This.TextView.RenderScope)); 464Point mouseMovePoint = e.GetPosition(This.TextView.RenderScope); 775UIElement renderScope = textEditor.TextView.RenderScope;
System\windows\Documents\TextEditorSelection.cs (6)
649ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 653This.TextView.RenderScope.UpdateLayout(); 763ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope); 767This.TextView.RenderScope.UpdateLayout(); 1479ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 1575ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope);
System\windows\Documents\TextEditorTyping.cs (1)
1897TextPointer pointer = (TextPointer)This.TextView.GetTextPositionFromPoint(Mouse.GetPosition(This.TextView.RenderScope), false);
System\Windows\Documents\TextPointerBase.cs (9)
870Invariant.Assert(textView.RenderScope != null, "Null RenderScope"); 891if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView) 894templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 895if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 897templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 902Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 911if (templatedParent != null && templatedParent.IsAncestorOf( /*descendant:*/textView.RenderScope)) 914GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextRangeEditTables.cs (2)
1718_tableColResizeAdorner = new ColumnResizeAdorner(textView.RenderScope); 1720textView.RenderScope,
System\windows\Documents\TextSelection.cs (2)
1991FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 2461DependencyObject element = TextView.RenderScope;
System\Windows\Documents\TextStore.cs (1)
2094return this.TextEditor.TextView.RenderScope;