110 references to TransformToAncestor
PresentationCore (8)
MS\Internal\Automation\ElementUtil.cs (1)
123GeneralTransform g = element.TransformToAncestor(parent);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
99transformGroup.Children.Add(descendentVisual.TransformToAncestor(visual3Dchild));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (1)
223GeneralTransform transformElementToRoot = element.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
278GeneralTransform transform = owner.TransformToAncestor(visualParent).Inverse;
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
130elementToRoot = containingVisual2D.TransformToAncestor(rootVisual);
System\Windows\Media\Visual.cs (2)
4672GeneralTransform transform2D = this.TransformToAncestor(containingVisual3D.Visual); 4730GeneralTransform gUp = this.TransformToAncestor(inputSource.RootVisual);
System\Windows\Media3D\Visual3D.cs (1)
1804GeneralTransform transformIn2D = containingViewport.TransformToAncestor(ancestor);
PresentationFramework (90)
MS\Internal\Documents\DocumentGrid.cs (1)
1811GeneralTransform transform = data.Visual.TransformToAncestor(this);
MS\Internal\Documents\DocumentPageTextView.cs (3)
574Transform transform = _page.Visual.TransformToAncestor(_owner) as Transform; 589GeneralTransform transform = _page.Visual.TransformToAncestor(_owner); 604GeneralTransform transform = _page.Visual.TransformToAncestor(_owner);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
421GeneralTransform transform = textView.RenderScope.TransformToAncestor(viewer); 459GeneralTransform transform = originalVisual.TransformToAncestor(visual).Inverse;
MS\Internal\Documents\MultiPageTextView.cs (6)
172Transform transform = _pageTextViews[i].RenderScope.TransformToAncestor(_renderScope).AffineTransform; 416GeneralTransform transform = _renderScope.TransformToAncestor(_viewer); 1249Transform transform = innerScope.TransformToAncestor(_renderScope) as Transform; 1265GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1280GeneralTransform transform = innerScope.TransformToAncestor(_renderScope); 1294GeneralTransform transform = innerScope.TransformToAncestor(_renderScope);
MS\Internal\Documents\ScrollData.cs (1)
176GeneralTransform childTransform = visual.TransformToAncestor(owner);
MS\Internal\Helper.cs (1)
1173Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\Ink\InkCanvasSelection.cs (2)
373GeneralTransform elementToCanvas = originalElement.TransformToAncestor(_inkCanvas.InnerCanvas); 1068GeneralTransform elementToCanvas = element.TransformToAncestor(innerCanvas);
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
406GeneralTransform parentTransform = childElement.TransformToAncestor(canvas);
MS\Internal\LayoutDump.cs (5)
224GeneralTransform g = visual.TransformToAncestor(parent); 256GeneralTransform g = element.TransformToAncestor(parent); 306GeneralTransform g = page.Visual.TransformToAncestor(parent); 561GeneralTransform gt = documentPage.Visual.TransformToAncestor(fdView); 912GeneralTransform g = visual.TransformToAncestor(visualParent);
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
284GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 337GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual); 623GeneralTransform transform = this.PageVisual.Child.TransformToAncestor(this.PageVisual);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
71transform = relativeTo.TransformToAncestor(source.RootVisual);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
249GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
178GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse;
System\Windows\Controls\DataGrid.cs (2)
4066GeneralTransform transform = row.TransformToAncestor(InternalScrollHost); 6512GeneralTransform transform = cell.TransformToAncestor(itemsHost);
System\Windows\Controls\DataGridCellsPanel.cs (1)
1982cellsPanelOffset = horizontalOffset + TransformToAncestor(scrollViewer).Transform(new Point()).X;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1126GeneralTransform t = RenderScope.TransformToAncestor(this); 1154GeneralTransform t = RenderScope.TransformToAncestor(this);
System\Windows\Controls\GridViewRowPresenter.cs (1)
484itemBounds = _viewItem.TransformToAncestor(_viewPort).TransformBounds(itemBounds);
System\Windows\Controls\ItemsControl.cs (3)
2599elementBounds = element.TransformToAncestor(viewportElement).TransformBounds(elementBounds); 2974elementBounds = CorrectCatastrophicCancellation(element.TransformToAncestor(viewPort)).TransformBounds(elementBounds); 3067layoutRect = CorrectCatastrophicCancellation(parent.TransformToAncestor(viewPort)).TransformBounds(element.PreviousArrangeRect);
System\Windows\Controls\PopupControlService.cs (1)
883GeneralTransform transformToRoot = visualParent.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
369text.TransformToAncestor(element).TryTransform(ancestorOffset, out ancestorOffset);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
973GeneralTransform transform = currentHeader.TransformToAncestor(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1153GeneralTransform transform = targetObject.TransformToAncestor(this);
System\Windows\Controls\Primitives\Popup.cs (3)
1832TransformToAncestor(rootVisual).AffineTransform.Value * //Transform between popup and root (Affine only) 2442visualToClientTransform.Children.Add(visual.TransformToAncestor(rootVisual)); 3052GeneralTransform transformTo = targetVisual.TransformToAncestor(rootVisual);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
572GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\ScrollViewer.cs (1)
2273GeneralTransform t = visi.TransformToAncestor(this);
System\Windows\Controls\SinglePageViewer.cs (1)
839pageRect = pageViews[index].TransformToAncestor(this).TransformBounds(pageRect);
System\Windows\Controls\Stack.cs (1)
247GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Controls\TextAdaptor.cs (4)
245GeneralTransform childToParent = renderScope.TransformToAncestor(visual); 342GeneralTransform transform = textView.RenderScope.TransformToAncestor(visual).Inverse; 394GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual); 435GeneralTransform transform = visual.TransformToAncestor(presentationSource.RootVisual);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
1497GeneralTransform childTransform = visual.TransformToAncestor(this);
System\Windows\Documents\AdornerLayer.cs (3)
722GeneralTransform transform = element.TransformToAncestor(adornerLayerParent); 852GeneralTransform transform = oldElement.TransformToAncestor(element); 869GeneralTransform transform = oldElement.TransformToAncestor(adornerLayerParent);
System\windows\Documents\CaretElement.cs (2)
392GeneralTransform transform = _textEditor.TextView.RenderScope.TransformToAncestor(scroller); 1066GeneralTransform transform = _caretElement.TransformToAncestor(source.RootVisual);
System\Windows\Documents\CompositionAdorner.cs (1)
133GeneralTransform transform = AdornedElement.TransformToAncestor(parent2d);
System\Windows\Documents\FixedPage.cs (1)
1246GeneralTransform transform = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedPageStructure.cs (5)
313GeneralTransform transform = image.TransformToAncestor(fp); 347GeneralTransform transform = path.TransformToAncestor(fp); 386GeneralTransform transform = glyphs.TransformToAncestor(fp); 536GeneralTransform g = glyphs.TransformToAncestor(fp); 588GeneralTransform transform = ((Visual)dependencyObject).TransformToAncestor(fp);
System\Windows\Documents\FixedSOMElement.cs (1)
80GeneralTransform transform = glyphs.TransformToAncestor(page);
System\Windows\Documents\FixedSOMImage.cs (2)
62GeneralTransform transform = image.TransformToAncestor(page); 83GeneralTransform trans = path.TransformToAncestor(page);
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
421GeneralTransform trans = glyphs.TransformToAncestor(_fixedPage);
System\Windows\Documents\FixedTextBuilder.cs (2)
1280Transform t = e.TransformToAncestor(p) as Transform; 1414Transform trans = child.TransformToAncestor(_fixedPage) as Transform;
System\Windows\Documents\FixedTextView.cs (4)
201GeneralTransform tran = g.TransformToAncestor(this.FixedPage); 206GeneralTransform tran = image.TransformToAncestor(this.FixedPage); 216GeneralTransform tran = path.TransformToAncestor(this.FixedPage); 263GeneralTransform transform = fh.Element.TransformToAncestor(this.FixedPage);
System\Windows\Documents\HighlightVisual.cs (2)
194GeneralTransform transform = fh.Element.TransformToAncestor(_page); 297GeneralTransform transform = fh.Element.TransformToAncestor(_page);
System\Windows\Documents\ImmComposition.cs (2)
656transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual); 765transform = RenderScope.TransformToAncestor(compositionTarget.RootVisual);
System\Windows\Documents\RubberbandSelector.cs (1)
350GeneralTransform t = g.TransformToAncestor(_page);
System\windows\Documents\TextEditorContextMenu.cs (1)
273GeneralTransform transform = element.TransformToAncestor(This.UiScope);
System\windows\Documents\TextEditorDragDrop.cs (1)
444GeneralTransform transform = target.TransformToAncestor(_textEditor.TextView.RenderScope);
System\Windows\Documents\TextPointerBase.cs (1)
909GeneralTransform transformFromRenderToUiScope = textView.RenderScope.TransformToAncestor(/*ancestor:*/templatedParent);
System\Windows\Documents\TextStore.cs (3)
1112transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 1158transform = UiScope.TransformToAncestor(compositionTarget.RootVisual); 2848GeneralTransform transform = visual.TransformToAncestor(root);
System\Windows\Input\KeyboardNavigation.cs (4)
706_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 2377GeneralTransform transform = uiElement.TransformToAncestor(rootVisual); 2421GeneralTransform transform = parent.TransformToAncestor(rootVisual); 2439GeneralTransform transform = containingVisual2D.TransformToAncestor(rootVisual);
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
913GeneralTransform t = contentVisual.TransformToAncestor(root);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
299GeneralTransform transform = placementTarget.TransformToAncestor(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
809GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
896GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
139GeneralTransform childTransform = visual.TransformToAncestor(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
250GeneralTransform transformRibbonTabToRibbon = tabHeader.TransformToAncestor(Ribbon);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1685GeneralTransform groupToRibbon = TransformToAncestor(ribbon); 1716GeneralTransform groupToPopup = TransformToAncestor(ribbonPopupChild);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
300GeneralTransform transformToRibbon = this.TransformToAncestor(ribbon); 647GeneralTransform headerToItemsControl = TransformToAncestor(tabHeaderItemsControl); 659GeneralTransform itemsControlToRibbon = tabHeaderItemsControl.TransformToAncestor(ribbon);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
110GeneralTransform transform = element.TransformToAncestor(ancestor);