C# 클래스 ModernWPF.DpiEvents

파일 보기 프로젝트 열기: soukoku/ModernWPF 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DpiChangeEvent System.Windows.RoutedEvent

공개 메소드들

메소드 설명
AddDpiChangeHandler ( DependencyObject element, EventHandler handler ) : void

Adds a handler to the DpiChange event.

GetWindowDpi ( DependencyObject obj ) : int

Gets the dpi value for the object contained in a window using Chrome.

GetWindowDpiScale ( DependencyObject obj ) : double

Gets the dpi scale value for the object contained in a window using Chrome.

RemoveDpiChangeHandler ( DependencyObject element, EventHandler handler ) : void

Removes a handler to the DpiChange event.

ScaleElement ( FrameworkElement child, double scaleFactor, bool compensateRender = false ) : void

Scales the element based on some factor.

비공개 메소드들

메소드 설명
GetIsDpiTransform ( DependencyObject obj ) : bool
SetIsDpiTransform ( DependencyObject obj, bool value ) : void
SetWindowDpi ( DependencyObject obj, int dpi ) : void
SetWindowDpiScale ( DependencyObject obj, double dpiScale ) : void
UnwrapDpiTransform ( Transform currentTransform ) : Transform
WrapDpiTransform ( Transform origTransform, double dpiScaleFactor ) : Transform

메소드 상세

AddDpiChangeHandler() 공개 정적인 메소드

Adds a handler to the DpiChange event.
public static AddDpiChangeHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject The element.
handler EventHandler The handler.
리턴 void

GetWindowDpi() 공개 정적인 메소드

Gets the dpi value for the object contained in a window using Chrome.
public static GetWindowDpi ( DependencyObject obj ) : int
obj System.Windows.DependencyObject The object.
리턴 int

GetWindowDpiScale() 공개 정적인 메소드

Gets the dpi scale value for the object contained in a window using Chrome.
public static GetWindowDpiScale ( DependencyObject obj ) : double
obj System.Windows.DependencyObject The object.
리턴 double

RemoveDpiChangeHandler() 공개 정적인 메소드

Removes a handler to the DpiChange event.
public static RemoveDpiChangeHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject The element.
handler EventHandler The handler.
리턴 void

ScaleElement() 공개 정적인 메소드

Scales the element based on some factor.
public static ScaleElement ( FrameworkElement child, double scaleFactor, bool compensateRender = false ) : void
child System.Windows.FrameworkElement The child.
scaleFactor double The scale factor.
compensateRender bool if set to true to compensate RTL bug with render transform.
리턴 void

프로퍼티 상세

DpiChangeEvent 공개적으로 정적으로 프로퍼티

Identifies the DpiChange event. This can only be listened to by a Window.
public static RoutedEvent,System.Windows DpiChangeEvent
리턴 System.Windows.RoutedEvent