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

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

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