2 implementations of RenderScope
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1257UIElement ITextView.RenderScope
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
637UIElement ITextView.RenderScope
115 references to RenderScope
PresentationFramework (115)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
972if ((view.RenderScope == null) || (parentView.RenderScope == null)) 982Transform additionalTransform = (Transform)view.RenderScope.TransformToVisual(parentView.RenderScope);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (5)
445if (startView != endView && startView.RenderScope != null && endView.RenderScope != null) 447geometry.Transform = (Transform)endView.RenderScope.TransformToVisual(startView.RenderScope); 965Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (7)
63else if (textContainer.TextView != null && textContainer.TextView.RenderScope is IContentHost) 66ich = (IContentHost)textContainer.TextView.RenderScope; 101if (textView.RenderScope is FlowDocumentView) // FlowDocumentScrollViewer 103if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0) 105ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost; 111else if (textView.RenderScope is FrameworkElement) 114FindDocumentPageViews(textView.RenderScope, pageViews);
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (1)
476/// <see cref="ITextView.RenderScope"/>
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
440positionRect = DocumentViewerHelper.CalculateVisibleRect(positionRect, textView.RenderScope); 443GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (5)
629/// <see cref="ITextView.RenderScope"/> 1383point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0)); 1400newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true); 1444point = TransformToDescendant(pageTextView.RenderScope, pageRequest.NewSuggestedOffset); 1490point = TransformToDescendant(pageTextView.RenderScope, pointRequest.Point);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1255/// <see cref="ITextView.RenderScope"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
554/// <see cref="ITextView.RenderScope"/>
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
480/// <see cref="ITextView.RenderScope"/>
src\Framework\MS\Internal\Documents\TextViewBase.cs (5)
140IScrollInfo isi = textView.RenderScope as IScrollInfo; 157FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 173((FrameworkElement)textView.RenderScope).BringIntoView(rect); 292/// <see cref="ITextView.RenderScope"/> 635/// <see cref="ITextView.RenderScope"/>
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
133UIElement uiElement = textView?.RenderScope; 254boundingRect = new Rect(textView.RenderScope.RenderSize); 255uiScope = textView.RenderScope; 260Visual visual = textView.RenderScope; 265GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
72PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 88Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 120PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 140Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 191Visual visual = textView.RenderScope; 196GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 241UIElement uiElement = textView?.RenderScope;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
854if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 861IScrollInfo isi = (IScrollInfo)textView.RenderScope; 915if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
src\Framework\System\Windows\Controls\TextAdaptor.cs (7)
164lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 249UIElement renderScope = textView.RenderScope; 326Rect visibleRect = new Rect(textView.RenderScope.RenderSize); 327Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 333GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 655location = ScreenToClient(location, textView.RenderScope);
src\Framework\System\windows\Documents\CaretElement.cs (5)
53internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.TextView.RenderScope) 55Invariant.Assert(textEditor.TextView != null && textEditor.TextView.RenderScope != null, "Assert: textView != null && RenderScope != null"); 399GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 788return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 866AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.TextView.RenderScope);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (3)
59: base(textView.RenderScope) 61Debug.Assert(textView != null && textView.RenderScope != null); 368_adornerLayer = AdornerLayer.GetAdornerLayer(textView.RenderScope);
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1394_editor.TextView.RenderScope.UpdateLayout(); 2060get { return _editor.TextView == null ? null : _editor.TextView.RenderScope; }
src\Framework\System\windows\Documents\TextEditor.cs (1)
1366FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
67Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 286FrameworkElement element = This.TextView.RenderScope as FrameworkElement;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (20)
146Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 370if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 430_textEditor.TextView.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below. 434ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 471if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target)) 473GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope); 519AdornerLayer layer = AdornerLayer.GetAdornerLayer(TextView.RenderScope); 557if (!_textEditor.TextView.Validate(e.GetPosition(_textEditor.TextView.RenderScope))) 564ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 657if (!_textEditor.IsReadOnly && _textEditor.TextView != null && _textEditor.TextView.RenderScope != null) 659Window window = Window.GetWindow(_textEditor.TextView.RenderScope); 815if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 837if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 863if (!This._IsEnabled || This.TextView == null || This.TextView.RenderScope == null) 884if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 919if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope))) 945if (!This.TextView.Validate(e.GetPosition(This.TextView.RenderScope)))
src\Framework\System\windows\Documents\TextEditorMouse.cs (7)
151transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 230This.TextView.RenderScope.UpdateLayout(); 247Point mouseDownPoint = e.GetPosition(This.TextView.RenderScope); 358Point mousePoint = e.GetPosition(This.TextView.RenderScope); 449TextEditorMouse.UpdateCursor(This, e.GetPosition(This.TextView.RenderScope)); 466Point mouseMovePoint = e.GetPosition(This.TextView.RenderScope); 776UIElement renderScope = textEditor.TextView.RenderScope;
src\Framework\System\windows\Documents\TextEditorSelection.cs (6)
658ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 662This.TextView.RenderScope.UpdateLayout(); 772ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope); 776This.TextView.RenderScope.UpdateLayout(); 1488ScrollBar.PageDownCommand.Execute(null, This.TextView.RenderScope); 1584ScrollBar.PageUpCommand.Execute(null, This.TextView.RenderScope);
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1927TextPointer pointer = (TextPointer)This.TextView.GetTextPositionFromPoint(Mouse.GetPosition(This.TextView.RenderScope), false);
src\Framework\System\Windows\Documents\TextPointerBase.cs (9)
872Invariant.Assert(textView.RenderScope != null, "Null RenderScope"); 893if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView) 896templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 897if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 899templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 904Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 913if (templatedParent != null && templatedParent.IsAncestorOf( /*descendant:*/textView.RenderScope)) 916GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
1721_tableColResizeAdorner = new ColumnResizeAdorner(textView.RenderScope); 1723textView.RenderScope,
src\Framework\System\windows\Documents\TextSelection.cs (2)
1999FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 2469DependencyObject element = TextView.RenderScope;
src\Framework\System\Windows\Documents\TextStore.cs (1)
1963return this.TextEditor.TextView.RenderScope;