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