C# 클래스 AdvancedLauncher.Tools.Extensions.PresentationSourceExtensions

파일 보기 프로젝트 열기: GoldRenard/DMOAdvancedLauncher

공개 메소드들

메소드 설명
TransformClientToDescendant ( this presentationSource, Point point, Visual descendant ) : Point

Convert a point from "client" coordinate space of a window into the coordinate space of the specified element of the same window.

TransformClientToRoot ( this presentationSource, Point pt ) : Point

Convert a point from "client" coordinate space of a window into the coordinate space of the root element of the same window.

TransformDescendantToClient ( this presentationSource, Point point, Visual descendant ) : Point

Convert a point from the coordinate space of the specified element into the "client" coordinate space of the window.

TransformRootToClient ( this presentationSource, Point pt ) : Point

Convert a point from the coordinate space of the root element into the "client" coordinate space of the same window.

비공개 메소드들

메소드 설명
ApplyVisualTransform ( Visual v, Point pt, bool inverse ) : Point

Convert a point from "above" the coordinate space of a visual into the the coordinate space "below" the visual.

GetVisualTransform ( Visual v ) : System.Windows.Media.Matrix

Gets the matrix that will convert a point from "above" the coordinate space of a visual into the the coordinate space "below" the visual.

메소드 상세

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

TransformClientToRoot() 공개 정적인 메소드

Convert a point from "client" coordinate space of a window into the coordinate space of the root element of the same window.
public static TransformClientToRoot ( this presentationSource, Point pt ) : Point
presentationSource this
pt System.Windows.Point
리턴 System.Windows.Point

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

TransformRootToClient() 공개 정적인 메소드

Convert a point from the coordinate space of the root element into the "client" coordinate space of the same window.
public static TransformRootToClient ( this presentationSource, Point pt ) : Point
presentationSource this
pt System.Windows.Point
리턴 System.Windows.Point