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