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