https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.visual.transformtodescendant?view=netframework-4.8.1&viewFallbackFrom=windowsdesktop-9.0
Visual.TransformToDescendant(Visual) Method (System.Windows.Media) | Microsoft Learn
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.
windows mediavisualmethodsystemmicrosoft