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