110 references to TransformToAncestor
PresentationCore (8)
MS\Internal\Automation\ElementUtil.cs (1)
122GeneralTransform g = element.TransformToAncestor(parent);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
98transformGroup.Children.Add(descendentVisual.TransformToAncestor(visual3Dchild));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (1)
222GeneralTransform transformElementToRoot = element.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
274GeneralTransform transform = owner.TransformToAncestor(visualParent).Inverse;
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
129elementToRoot = containingVisual2D.TransformToAncestor(rootVisual);
System\Windows\Media\Visual.cs (2)
4669GeneralTransform transform2D = this.TransformToAncestor(containingVisual3D.Visual); 4727GeneralTransform gUp = this.TransformToAncestor(inputSource.RootVisual);
System\Windows\Media3D\Visual3D.cs (1)
1803GeneralTransform transformIn2D = containingViewport.TransformToAncestor(ancestor);
PresentationFramework (90)
MS\Internal\Documents\DocumentGrid.cs (1)
1807GeneralTransform transform = data.Visual.TransformToAncestor(this);
MS\Internal\Documents\DocumentPageTextView.cs (3)
573Transform transform = _page.Visual.TransformToAncestor(_owner) as Transform; 588GeneralTransform transform = _page.Visual.TransformToAncestor(_owner); 603GeneralTransform transform = _page.Visual.TransformToAncestor(_owner);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
420GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer); 458GeneralTransform transform = originalVisual.TransformToAncestor(visual).Inverse;
MS\Internal\Documents\MultiPageTextView.cs (6)
171Transform transform = _pageTextViews[i].RenderScope.TransformToAncestor(_renderScope).AffineTransform; 415GeneralTransform transform = _renderScope.TransformToAncestor(_viewer); 1248Transform transform = innerScope.TransformToAncestor(_renderScope) as Transform; 1264GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1279GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1293GeneralTransform transform = innerScope.TransformToAncestor(_renderScope);
MS\Internal\Documents\ScrollData.cs (1)
175GeneralTransform childTransform = visual.TransformToAncestor(owner);
MS\Internal\Helper.cs (1)
1172Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\Ink\InkCanvasSelection.cs (2)
372GeneralTransform elementToCanvas = originalElement.TransformToAncestor(_inkCanvas.InnerCanvas); 1067GeneralTransform elementToCanvas = element.TransformToAncestor(innerCanvas);
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
405GeneralTransform parentTransform = childElement.TransformToAncestor(canvas);
MS\Internal\LayoutDump.cs (5)
223GeneralTransform g = visual.TransformToAncestor(parent); 255GeneralTransform g = element.TransformToAncestor(parent); 305GeneralTransform g = page.Visual.TransformToAncestor(parent); 560GeneralTransform gt = documentPage.Visual.TransformToAncestor(fdView); 911GeneralTransform g = visual.TransformToAncestor(visualParent);
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
283GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 336GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 622GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
70transform = relativeTo.TransformToAncestor(source.RootVisual);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
248GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
177GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Controls\DataGrid.cs (2)
4059GeneralTransform transform = row.TransformToAncestor(InternalScrollHost); 6505GeneralTransform transform = cell.TransformToAncestor(itemsHost);
System\Windows\Controls\DataGridCellsPanel.cs (1)
1975cellsPanelOffset = horizontalOffset + TransformToAncestor(scrollViewer).Transform(new Point()).X;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1119GeneralTransform t = RenderScope.TransformToAncestor(this); 1147GeneralTransform t = RenderScope.TransformToAncestor(this);
System\Windows\Controls\GridViewRowPresenter.cs (1)
483itemBounds = _viewItem.TransformToAncestor(_viewPort).TransformBounds(itemBounds);
System\Windows\Controls\ItemsControl.cs (3)
2598elementBounds = element.TransformToAncestor(viewportElement).TransformBounds(elementBounds); 2973elementBounds = CorrectCatastrophicCancellation(element.TransformToAncestor(viewPort)).TransformBounds(elementBounds); 3066layoutRect = CorrectCatastrophicCancellation(parent.TransformToAncestor(viewPort)).TransformBounds(element.PreviousArrangeRect);
System\Windows\Controls\PopupControlService.cs (1)
882GeneralTransform transformToRoot = visualParent.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
368text.TransformToAncestor(element).TryTransform(ancestorOffset, out ancestorOffset);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
963GeneralTransform transform = currentHeader.TransformToAncestor(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1152GeneralTransform transform = targetObject.TransformToAncestor(this);
System\Windows\Controls\Primitives\Popup.cs (3)
1831TransformToAncestor(rootVisual).AffineTransform.Value * //Transform between popup and root (Affine only) 2441visualToClientTransform.Children.Add(visual.TransformToAncestor(rootVisual)); 3051GeneralTransform transformTo = targetVisual.TransformToAncestor(rootVisual);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
571GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\ScrollViewer.cs (1)
2270GeneralTransform t = visi.TransformToAncestor(this);
System\Windows\Controls\SinglePageViewer.cs (1)
838pageRect = pageViews[index].TransformToAncestor(this).TransformBounds(pageRect);
System\Windows\Controls\Stack.cs (1)
246GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\TextAdaptor.cs (4)
247GeneralTransform childToParent = renderScope.TransformToAncestor(visual); 344GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 396GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual); 437GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
1496GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Documents\AdornerLayer.cs (3)
721GeneralTransform transform = element.TransformToAncestor(adornerLayerParent); 851GeneralTransform transform = oldElement.TransformToAncestor(element); 868GeneralTransform transform = oldElement.TransformToAncestor(adornerLayerParent);
System\windows\Documents\CaretElement.cs (2)
391GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 1065GeneralTransform transform = _caretElement.TransformToAncestor(source.RootVisual);
System\Windows\Documents\CompositionAdorner.cs (1)
132GeneralTransform transform = AdornedElement.TransformToAncestor(parent2d);
System\Windows\Documents\FixedPage.cs (1)
1245GeneralTransform transform = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedPageStructure.cs (5)
312GeneralTransform transform = image.TransformToAncestor(fp); 346GeneralTransform transform = path.TransformToAncestor(fp); 385GeneralTransform transform = glyphs.TransformToAncestor(fp); 535GeneralTransform g = glyphs.TransformToAncestor(fp); 587GeneralTransform transform = ((Visual)dependencyObject).TransformToAncestor(fp);
System\Windows\Documents\FixedSOMElement.cs (1)
79GeneralTransform transform = glyphs.TransformToAncestor(page);
System\Windows\Documents\FixedSOMImage.cs (2)
61GeneralTransform transform = image.TransformToAncestor(page); 82GeneralTransform trans = path.TransformToAncestor(page);
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
420GeneralTransform trans = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedTextBuilder.cs (2)
1279Transform t = e.TransformToAncestor(p) as Transform; 1413Transform trans = child.TransformToAncestor(_fixedPage) as Transform;
System\Windows\Documents\FixedTextView.cs (4)
200GeneralTransform tran = g.TransformToAncestor(this.FixedPage); 205GeneralTransform tran = image.TransformToAncestor(this.FixedPage); 215GeneralTransform tran = path.TransformToAncestor(this.FixedPage); 262GeneralTransform transform = fh.Element.TransformToAncestor(this.FixedPage);
System\Windows\Documents\HighlightVisual.cs (2)
193GeneralTransform transform = fh.Element.TransformToAncestor(_page); 296GeneralTransform transform = fh.Element.TransformToAncestor(_page);
System\Windows\Documents\ImmComposition.cs (2)
655transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual); 764transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual);
System\Windows\Documents\RubberbandSelector.cs (1)
349GeneralTransform t = g.TransformToAncestor(_page);
System\windows\Documents\TextEditorContextMenu.cs (1)
272GeneralTransform transform = element.TransformToAncestor(This.UiScope);
System\windows\Documents\TextEditorDragDrop.cs (1)
443GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope);
System\Windows\Documents\TextPointerBase.cs (1)
908GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextStore.cs (3)
1111transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 1157transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 2838GeneralTransform transform = visual.TransformToAncestor(root);
System\Windows\Input\KeyboardNavigation.cs (4)
705_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 2375GeneralTransform transform = uiElement.TransformToAncestor(rootVisual); 2419GeneralTransform transform = parent.TransformToAncestor(rootVisual); 2437GeneralTransform transform = containingVisual2D.TransformToAncestor(rootVisual);
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
911GeneralTransform t = contentVisual.TransformToAncestor(root);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
298GeneralTransform transform = placementTarget.TransformToAncestor(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
808GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
886GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
138GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
249GeneralTransform transformRibbonTabToRibbon = tabHeader.TransformToAncestor(Ribbon);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1681GeneralTransform groupToRibbon = TransformToAncestor(ribbon); 1712GeneralTransform groupToPopup = TransformToAncestor(ribbonPopupChild);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
299GeneralTransform transformToRibbon = this.TransformToAncestor(ribbon); 643GeneralTransform headerToItemsControl = TransformToAncestor(tabHeaderItemsControl); 655GeneralTransform itemsControlToRibbon = tabHeaderItemsControl.TransformToAncestor(ribbon);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
109GeneralTransform transform = element.TransformToAncestor(ancestor);