110 references to TransformToAncestor
PresentationCore (8)
MS\Internal\Automation\ElementUtil.cs (1)
138GeneralTransform g = element.TransformToAncestor(parent);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
113transformGroup.Children.Add(descendentVisual.TransformToAncestor(visual3Dchild));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (1)
226GeneralTransform transformElementToRoot = element.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
287GeneralTransform transform = owner.TransformToAncestor(visualParent).Inverse;
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
132elementToRoot = containingVisual2D.TransformToAncestor(rootVisual);
System\Windows\Media\Visual.cs (2)
4691GeneralTransform transform2D = this.TransformToAncestor(containingVisual3D.Visual); 4749GeneralTransform gUp = this.TransformToAncestor(inputSource.RootVisual);
System\Windows\Media3D\Visual3D.cs (1)
1818GeneralTransform transformIn2D = containingViewport.TransformToAncestor(ancestor);
PresentationFramework (90)
MS\Internal\Documents\DocumentGrid.cs (1)
1815GeneralTransform transform = data.Visual.TransformToAncestor(this);
MS\Internal\Documents\DocumentPageTextView.cs (3)
576Transform transform = _page.Visual.TransformToAncestor(_owner) as Transform; 591GeneralTransform transform = _page.Visual.TransformToAncestor(_owner); 606GeneralTransform transform = _page.Visual.TransformToAncestor(_owner);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
423GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer); 461GeneralTransform transform = originalVisual.TransformToAncestor(visual).Inverse;
MS\Internal\Documents\MultiPageTextView.cs (6)
174Transform transform = _pageTextViews[i].RenderScope.TransformToAncestor(_renderScope).AffineTransform; 418GeneralTransform transform = _renderScope.TransformToAncestor(_viewer); 1251Transform transform = innerScope.TransformToAncestor(_renderScope) as Transform; 1267GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1282GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1296GeneralTransform transform = innerScope.TransformToAncestor(_renderScope);
MS\Internal\Documents\ScrollData.cs (1)
184GeneralTransform childTransform = visual.TransformToAncestor(owner);
MS\Internal\Helper.cs (1)
1188Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\Ink\InkCanvasSelection.cs (2)
385GeneralTransform elementToCanvas = originalElement.TransformToAncestor(_inkCanvas.InnerCanvas); 1080GeneralTransform elementToCanvas = element.TransformToAncestor(innerCanvas);
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
412GeneralTransform parentTransform = childElement.TransformToAncestor(canvas);
MS\Internal\LayoutDump.cs (5)
225GeneralTransform g = visual.TransformToAncestor(parent); 257GeneralTransform g = element.TransformToAncestor(parent); 307GeneralTransform g = page.Visual.TransformToAncestor(parent); 562GeneralTransform gt = documentPage.Visual.TransformToAncestor(fdView); 913GeneralTransform g = visual.TransformToAncestor(visualParent);
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
292GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 345GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 631GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
105transform = relativeTo.TransformToAncestor(source.RootVisual);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
251GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
182GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Controls\DataGrid.cs (2)
4095GeneralTransform transform = row.TransformToAncestor(InternalScrollHost); 6556GeneralTransform transform = cell.TransformToAncestor(itemsHost);
System\Windows\Controls\DataGridCellsPanel.cs (1)
1991cellsPanelOffset = horizontalOffset + TransformToAncestor(scrollViewer).Transform(new Point()).X;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1137GeneralTransform t = RenderScope.TransformToAncestor(this); 1165GeneralTransform t = RenderScope.TransformToAncestor(this);
System\Windows\Controls\GridViewRowPresenter.cs (1)
488itemBounds = _viewItem.TransformToAncestor(_viewPort).TransformBounds(itemBounds);
System\Windows\Controls\ItemsControl.cs (3)
2638elementBounds = element.TransformToAncestor(viewportElement).TransformBounds(elementBounds); 3013elementBounds = CorrectCatastrophicCancellation(element.TransformToAncestor(viewPort)).TransformBounds(elementBounds); 3106layoutRect = CorrectCatastrophicCancellation(parent.TransformToAncestor(viewPort)).TransformBounds(element.PreviousArrangeRect);
System\Windows\Controls\PopupControlService.cs (1)
886GeneralTransform transformToRoot = visualParent.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
375text.TransformToAncestor(element).TryTransform(ancestorOffset, out ancestorOffset);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
983GeneralTransform transform = currentHeader.TransformToAncestor(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1180GeneralTransform transform = targetObject.TransformToAncestor(this);
System\Windows\Controls\Primitives\Popup.cs (3)
1826TransformToAncestor(rootVisual).AffineTransform.Value * //Transform between popup and root (Affine only) 2436visualToClientTransform.Children.Add(visual.TransformToAncestor(rootVisual)); 3050GeneralTransform transformTo = targetVisual.TransformToAncestor(rootVisual);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
585GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\ScrollViewer.cs (1)
2282GeneralTransform t = visi.TransformToAncestor(this);
System\Windows\Controls\SinglePageViewer.cs (1)
840pageRect = pageViews[index].TransformToAncestor(this).TransformBounds(pageRect);
System\Windows\Controls\Stack.cs (1)
256GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\TextAdaptor.cs (4)
251GeneralTransform childToParent = renderScope.TransformToAncestor(visual); 354GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 406GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual); 447GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
1505GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Documents\AdornerLayer.cs (3)
724GeneralTransform transform = element.TransformToAncestor(adornerLayerParent); 854GeneralTransform transform = oldElement.TransformToAncestor(element); 869GeneralTransform transform = oldElement.TransformToAncestor(adornerLayerParent);
System\windows\Documents\CaretElement.cs (2)
396GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 1072GeneralTransform transform = _caretElement.TransformToAncestor(source.RootVisual);
System\Windows\Documents\CompositionAdorner.cs (1)
136GeneralTransform transform = AdornedElement.TransformToAncestor(parent2d);
System\Windows\Documents\FixedPage.cs (1)
1252GeneralTransform transform = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedPageStructure.cs (5)
319GeneralTransform transform = image.TransformToAncestor(fp); 353GeneralTransform transform = path.TransformToAncestor(fp); 392GeneralTransform transform = glyphs.TransformToAncestor(fp); 542GeneralTransform g = glyphs.TransformToAncestor(fp); 594GeneralTransform transform = ((Visual)dependencyObject).TransformToAncestor(fp);
System\Windows\Documents\FixedSOMElement.cs (1)
83GeneralTransform transform = glyphs.TransformToAncestor(page);
System\Windows\Documents\FixedSOMImage.cs (2)
64GeneralTransform transform = image.TransformToAncestor(page); 85GeneralTransform trans = path.TransformToAncestor(page);
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
424GeneralTransform trans = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedTextBuilder.cs (2)
1289Transform t = e.TransformToAncestor(p) as Transform; 1423Transform trans = child.TransformToAncestor(_fixedPage) as Transform;
System\Windows\Documents\FixedTextView.cs (4)
212GeneralTransform tran = g.TransformToAncestor(this.FixedPage); 218GeneralTransform tran = image.TransformToAncestor(this.FixedPage); 229GeneralTransform tran = path.TransformToAncestor(this.FixedPage); 276GeneralTransform transform = fh.Element.TransformToAncestor(this.FixedPage);
System\Windows\Documents\HighlightVisual.cs (2)
204GeneralTransform transform = fh.Element.TransformToAncestor(_page); 305GeneralTransform transform = fh.Element.TransformToAncestor(_page);
System\Windows\Documents\ImmComposition.cs (2)
679transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual); 788transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual);
System\Windows\Documents\RubberbandSelector.cs (1)
361GeneralTransform t = g.TransformToAncestor(_page);
System\windows\Documents\TextEditorContextMenu.cs (1)
275GeneralTransform transform = element.TransformToAncestor(This.UiScope);
System\windows\Documents\TextEditorDragDrop.cs (1)
461GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope);
System\Windows\Documents\TextPointerBase.cs (1)
911GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextStore.cs (3)
1126transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 1172transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 2863GeneralTransform transform = visual.TransformToAncestor(root);
System\Windows\Input\KeyboardNavigation.cs (4)
712_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 2387GeneralTransform transform = uiElement.TransformToAncestor(rootVisual); 2431GeneralTransform transform = parent.TransformToAncestor(rootVisual); 2449GeneralTransform transform = containingVisual2D.TransformToAncestor(rootVisual);
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
924GeneralTransform t = contentVisual.TransformToAncestor(root);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
305GeneralTransform transform = placementTarget.TransformToAncestor(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
820GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
905GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
143GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
254GeneralTransform transformRibbonTabToRibbon = tabHeader.TransformToAncestor(Ribbon);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1697GeneralTransform groupToRibbon = TransformToAncestor(ribbon); 1728GeneralTransform groupToPopup = TransformToAncestor(ribbonPopupChild);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
302GeneralTransform transformToRibbon = this.TransformToAncestor(ribbon); 652GeneralTransform headerToItemsControl = TransformToAncestor(tabHeaderItemsControl); 664GeneralTransform itemsControlToRibbon = tabHeaderItemsControl.TransformToAncestor(ribbon);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
114GeneralTransform transform = element.TransformToAncestor(ancestor);