95 references to TransformToAncestor
PresentationCore (7)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
142GeneralTransform g = element.TransformToAncestor(parent);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
112transformGroup.Children.Add(descendentVisual.TransformToAncestor(visual3Dchild));
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
310GeneralTransform transform = owner.TransformToAncestor(visualParent).Inverse;
Core\CSharp\System\Windows\Media\Visual.cs (2)
4737GeneralTransform transform2D = this.TransformToAncestor(containingVisual3D.Visual); 4795GeneralTransform gUp = this.TransformToAncestor(inputSource.RootVisual);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (1)
1849GeneralTransform transformIn2D = containingViewport.TransformToAncestor(ancestor);
Shared\MS\Internal\PointUtil.cs (1)
251GeneralTransform transformElementToRoot = element.TransformToAncestor(presentationSource.RootVisual);
PresentationFramework (82)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1854GeneralTransform transform = data.Visual.TransformToAncestor(this);
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (3)
578Transform transform = _page.Visual.TransformToAncestor(_owner) as Transform; 593GeneralTransform transform = _page.Visual.TransformToAncestor(_owner); 608GeneralTransform transform = _page.Visual.TransformToAncestor(_owner);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
443GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer); 481GeneralTransform transform = originalVisual.TransformToAncestor(visual).Inverse;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (6)
177Transform transform = _pageTextViews[i].RenderScope.TransformToAncestor(_renderScope).AffineTransform; 421GeneralTransform transform = _renderScope.TransformToAncestor(_viewer); 1256Transform transform = innerScope.TransformToAncestor(_renderScope) as Transform; 1272GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1287GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1301GeneralTransform transform = innerScope.TransformToAncestor(_renderScope);
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
187GeneralTransform childTransform = visual.TransformToAncestor(owner);
src\Framework\MS\Internal\Helper.cs (1)
1204Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
395GeneralTransform elementToCanvas = originalElement.TransformToAncestor(_inkCanvas.InnerCanvas); 1092GeneralTransform elementToCanvas = element.TransformToAncestor(innerCanvas);
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (1)
415GeneralTransform parentTransform = childElement.TransformToAncestor(canvas);
src\Framework\MS\Internal\LayoutDump.cs (5)
227GeneralTransform g = visual.TransformToAncestor(parent); 259GeneralTransform g = element.TransformToAncestor(parent); 309GeneralTransform g = page.Visual.TransformToAncestor(parent); 565GeneralTransform gt = documentPage.Visual.TransformToAncestor(fdView); 916GeneralTransform g = visual.TransformToAncestor(visualParent);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
294GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 347GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 652GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
265GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
196GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
src\Framework\System\Windows\Controls\DataGrid.cs (2)
4100GeneralTransform transform = row.TransformToAncestor(InternalScrollHost); 6561GeneralTransform transform = cell.TransformToAncestor(itemsHost);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1993cellsPanelOffset = horizontalOffset + TransformToAncestor(scrollViewer).Transform(new Point()).X;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1145GeneralTransform t = RenderScope.TransformToAncestor(this); 1173GeneralTransform t = RenderScope.TransformToAncestor(this);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
491itemBounds = _viewItem.TransformToAncestor(_viewPort).TransformBounds(itemBounds);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2641elementBounds = element.TransformToAncestor(viewportElement).TransformBounds(elementBounds); 3016elementBounds = element.TransformToAncestor(viewPort).TransformBounds(elementBounds);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
376text.TransformToAncestor(element).TryTransform(ancestorOffset, out ancestorOffset);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
983GeneralTransform transform = currentHeader.TransformToAncestor(this);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1192GeneralTransform transform = targetObject.TransformToAncestor(this);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (3)
1830TransformToAncestor(rootVisual).AffineTransform.Value * //Transform between popup and root (Affine only) 2442visualToClientTransform.Children.Add(visual.TransformToAncestor(rootVisual)); 3106GeneralTransform transformTo = targetVisual.TransformToAncestor(rootVisual);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
591GeneralTransform childTransform = visual.TransformToAncestor(this);
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2321GeneralTransform t = visi.TransformToAncestor(this);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
847pageRect = pageViews[index].TransformToAncestor(this).TransformBounds(pageRect);
src\Framework\System\Windows\Controls\Stack.cs (1)
262GeneralTransform childTransform = visual.TransformToAncestor(this);
src\Framework\System\Windows\Controls\TextAdaptor.cs (4)
259GeneralTransform childToParent = renderScope.TransformToAncestor(visual); 333GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 386GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual); 428GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
1456GeneralTransform childTransform = visual.TransformToAncestor(this);
src\Framework\System\Windows\Documents\AdornerLayer.cs (3)
739GeneralTransform transform = element.TransformToAncestor(adornerLayerParent); 869GeneralTransform transform = oldElement.TransformToAncestor(element); 884GeneralTransform transform = oldElement.TransformToAncestor(adornerLayerParent);
src\Framework\System\windows\Documents\CaretElement.cs (2)
399GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 1105GeneralTransform transform = _caretElement.TransformToAncestor(source.RootVisual);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
138GeneralTransform transform = AdornedElement.TransformToAncestor(parent2d);
src\Framework\System\Windows\Documents\FixedSOMElement.cs (1)
87GeneralTransform transform = glyphs.TransformToAncestor(page);
src\Framework\System\Windows\Documents\FixedSOMImage.cs (2)
69GeneralTransform transform = image.TransformToAncestor(page); 90GeneralTransform trans = path.TransformToAncestor(page);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (1)
433GeneralTransform trans = glyphs.TransformToAncestor(_fixedPage);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (2)
1316Transform t = e.TransformToAncestor(p) as Transform; 1451Transform trans = child.TransformToAncestor(_fixedPage) as Transform;
src\Framework\System\Windows\Documents\FixedTextView.cs (4)
220GeneralTransform tran = g.TransformToAncestor(this.FixedPage); 226GeneralTransform tran = image.TransformToAncestor(this.FixedPage); 237GeneralTransform tran = path.TransformToAncestor(this.FixedPage); 284GeneralTransform transform = fh.Element.TransformToAncestor(this.FixedPage);
src\Framework\System\Windows\Documents\HighlightVisual.cs (2)
207GeneralTransform transform = fh.Element.TransformToAncestor(_page); 309GeneralTransform transform = fh.Element.TransformToAncestor(_page);
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
775transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual); 900transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
459GeneralTransform t = g.TransformToAncestor(_page);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
289GeneralTransform transform = element.TransformToAncestor(This.UiScope);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
473GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope);
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
916GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
src\Framework\System\Windows\Documents\TextStore.cs (3)
987transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 1031transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 2747GeneralTransform transform = visual.TransformToAncestor(root);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
760_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 2474GeneralTransform transform = uiElement.TransformToAncestor(rootVisual); 2518GeneralTransform transform = parent.TransformToAncestor(rootVisual); 2536GeneralTransform transform = containingVisual2D.TransformToAncestor(rootVisual);
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
140transform = relativeTo.TransformToAncestor(source.RootVisual);
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
215transform = (MatrixTransform)target.TransformToAncestor(commonRoot);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
218MatrixTransform transform = (MatrixTransform)target.TransformToAncestor(commonRoot);
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
199GeneralTransform transform = view.DragHandle.TransformToAncestor(this.Designer);
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (1)
238return (rootVisual != null) ? visual.TransformToAncestor(rootVisual) : null;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (1)
473GeneralTransform generalTransform1 = this.TransformToAncestor((Visual)this.DesignerRoot);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
798GeneralTransform transform = this.DragHandle.TransformToAncestor(this);