2 implementations of RenderScope
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1253UIElement ITextView.RenderScope
MS\Internal\Documents\TextViewBase.cs (1)
633UIElement ITextView.RenderScope
115 references to RenderScope
PresentationFramework (115)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
948if ((view.RenderScope == null) || (parentView.RenderScope == null)) 958Transform additionalTransform = (Transform)view.RenderScope.TransformToVisual(parentView.RenderScope);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
424if (startView != endView && startView.RenderScope != null && endView.RenderScope != null) 426geometry.Transform = (Transform)endView.RenderScope.TransformToVisual(startView.RenderScope); 937Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
MS\Internal\Documents\ContentHostHelper.cs (7)
58else if (textContainer.TextView != null && textContainer.TextView.RenderScope is IContentHost) 61ich = (IContentHost)textContainer.TextView.RenderScope; 96if (textView.RenderScope is FlowDocumentView) // FlowDocumentScrollViewer 98if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0) 100ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost; 106else if (textView.RenderScope is FrameworkElement) 109FindDocumentPageViews(textView.RenderScope, pageViews);
MS\Internal\Documents\DocumentPageTextView.cs (1)
472/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\DocumentViewerHelper.cs (2)
418positionRect = DocumentViewerHelper.CalculateVisibleRect(positionRect, textView.RenderScope); 421GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer);
MS\Internal\Documents\MultiPageTextView.cs (5)
622/// <see cref="ITextView.RenderScope"/> 1376point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0)); 1393newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true); 1437point = TransformToDescendant(pageTextView.RenderScope, pageRequest.NewSuggestedOffset); 1483point = TransformToDescendant(pageTextView.RenderScope, pointRequest.Point);
MS\Internal\Documents\TextBoxView.cs (1)
1251/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextDocumentView.cs (1)
545/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextParagraphView.cs (1)
449/// <see cref="ITextView.RenderScope"/>
MS\Internal\Documents\TextViewBase.cs (5)
136IScrollInfo isi = textView.RenderScope as IScrollInfo; 153FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 169((FrameworkElement)textView.RenderScope).BringIntoView(rect); 288/// <see cref="ITextView.RenderScope"/> 631/// <see cref="ITextView.RenderScope"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
129UIElement uiElement = textView?.RenderScope; 238boundingRect = new Rect(textView.RenderScope.RenderSize); 239uiScope = textView.RenderScope; 244Visual visual = textView.RenderScope; 249GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
60PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 76Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 102PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 122Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 173Visual visual = textView.RenderScope; 178GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 223UIElement uiElement = textView?.RenderScope;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
845if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 852IScrollInfo isi = (IScrollInfo)textView.RenderScope; 906if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
System\Windows\Controls\TextAdaptor.cs (7)
153lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 238UIElement renderScope = textView.RenderScope; 344Rect visibleRect = new Rect(textView.RenderScope.RenderSize); 345Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 351GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 668location = ScreenToClient(location, textView.RenderScope);
System\windows\Documents\CaretElement.cs (5)
47internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.TextView.RenderScope) 49Invariant.Assert(textEditor.TextView != null && textEditor.TextView.RenderScope != null, "Assert: textView != null && RenderScope != null"); 393GeneralTransform 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)
54: base(textView.RenderScope) 56Debug.Assert(textView != null && textView.RenderScope != null); 363_adornerLayer = AdornerLayer.GetAdornerLayer(textView.RenderScope);
System\Windows\Documents\ImmComposition.cs (2)
1254_editor.TextView.RenderScope.UpdateLayout(); 1862get { return _editor.TextView == null ? null : _editor.TextView.RenderScope; }
System\windows\Documents\TextEditor.cs (1)
1333FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement);
System\windows\Documents\TextEditorContextMenu.cs (2)
56Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 270FrameworkElement element = This.TextView.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (20)
126Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 341if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 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. 405ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 442if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target)) 444GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope); 490AdornerLayer layer = AdornerLayer.GetAdornerLayer(TextView.RenderScope); 528if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 535ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 628if (!_textEditor.IsReadOnly && _textEditor.TextView != null && _textEditor.TextView.RenderScope != null) 630Window window = Window.GetWindow(_textEditor.TextView.RenderScope); 770if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 792if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 818if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 839if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 874if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 899if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (7)
135transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 214This.TextView.RenderScope.UpdateLayout(); 231Point mouseDownPoint = e.GetPosition(This.TextView.RenderScope); 342Point mousePoint = e.GetPosition(This.TextView.RenderScope); 433TextEditorMouse.UpdateCursor(This, e.GetPosition(This.TextView.RenderScope)); 450Point mouseMovePoint = e.GetPosition(This.TextView.RenderScope); 761UIElement renderScope = textEditor.TextView.RenderScope;
System\windows\Documents\TextEditorSelection.cs (6)
634ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 638This.TextView.RenderScope.UpdateLayout(); 748ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope); 752This.TextView.RenderScope.UpdateLayout(); 1464ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 1560ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope);
System\windows\Documents\TextEditorTyping.cs (1)
1888TextPointer pointer = (TextPointer)This.TextView.GetTextPositionFromPoint(Mouse.GetPosition(This.TextView.RenderScope), false);
System\Windows\Documents\TextPointerBase.cs (9)
865Invariant.Assert(textView.RenderScope != null, "Null RenderScope"); 886if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView) 889templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 890if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 892templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 897Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 906if (templatedParent != null && templatedParent.IsAncestorOf( /*descendant:*/textView.RenderScope)) 909GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextRangeEditTables.cs (2)
1716_tableColResizeAdorner = new ColumnResizeAdorner(textView.RenderScope); 1718textView.RenderScope,
System\windows\Documents\TextSelection.cs (2)
1988FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 2458DependencyObject element = TextView.RenderScope;
System\Windows\Documents\TextStore.cs (1)
2083return this.TextEditor.TextView.RenderScope;