AdvancedLauncher.Tools.Extensions.PresentationSourceExtensions.TransformDescendantToClient C# (CSharp) Метод

TransformDescendantToClient() публичный статический Метод

Convert a point from the coordinate space of the specified element into the "client" coordinate space of the window.
public static TransformDescendantToClient ( this presentationSource, Point point, Visual descendant ) : Point
presentationSource this
point System.Windows.Point
descendant Visual
Результат System.Windows.Point
        public static Point TransformDescendantToClient(this PresentationSource presentationSource, Point point, Visual descendant)
        {
            Point pt = descendant.TransformToAncestor(presentationSource.RootVisual).Transform(point);
            return TransformRootToClient(presentationSource, pt);
        }