C# 클래스 MetroIde.Helpers.Native.WindowMovement

파일 보기 프로젝트 열기: ChadSki/Quickbeam

공개 프로퍼티들

프로퍼티 타입 설명
DragsWindow System.Windows.DependencyProperty
IsDraggableProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
GetDragsWindow ( Visual window ) : bool

Gets the value of the WindowMovement.DragsWindow attached property on a Visual.

GetIsDraggable ( Window window ) : bool

Gets the value of the WindowMovement.IsDraggable attached property on a Window.

HasDragsWindowEnabled ( DependencyObject visual ) : bool

Determines whether or not a DependencyObject has the WindowMovement.DragsWindow property set to true.

SetDragsWindow ( Visual window, bool value ) : void

Sets the value of the WindowMovement.DragsWindow attached property on a Visual.

SetIsDraggable ( Window window, bool value ) : void

Sets the value of the WindowMovement.IsDraggable attached property on a Window.

비공개 메소드들

메소드 설명
GetWindowSource ( Window window ) : System.Windows.Interop.HwndSource

Gets a Window's HwndSource.

IsDraggableChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
MakeWindowMovable ( Window window ) : bool

Makes a custom-shaped window draggable based upon clicks on objects with the WindowMovement.DragsWindow attribute.

MakeWindowUnmovable ( Window window ) : void

Makes a window affected by MakeWindowMovable no longer movable.

WindowSourceInitialized ( object sender, EventArgs e ) : void
window_Closed ( object sender, EventArgs e ) : void

메소드 상세

GetDragsWindow() 공개 정적인 메소드

Gets the value of the WindowMovement.DragsWindow attached property on a Visual.
public static GetDragsWindow ( Visual window ) : bool
window Visual The Visual to set the property on.
리턴 bool

GetIsDraggable() 공개 정적인 메소드

Gets the value of the WindowMovement.IsDraggable attached property on a Window.
public static GetIsDraggable ( Window window ) : bool
window System.Windows.Window The Window to set the property on.
리턴 bool

HasDragsWindowEnabled() 공개 정적인 메소드

Determines whether or not a DependencyObject has the WindowMovement.DragsWindow property set to true.
public static HasDragsWindowEnabled ( DependencyObject visual ) : bool
visual System.Windows.DependencyObject The DependencyObject to test for the property on.
리턴 bool

SetDragsWindow() 공개 정적인 메소드

Sets the value of the WindowMovement.DragsWindow attached property on a Visual.
public static SetDragsWindow ( Visual window, bool value ) : void
window Visual The Visual to set the property on.
value bool The value to set the property to.
리턴 void

SetIsDraggable() 공개 정적인 메소드

Sets the value of the WindowMovement.IsDraggable attached property on a Window.
public static SetIsDraggable ( Window window, bool value ) : void
window System.Windows.Window The Window to set the property on.
value bool The value to set the property to.
리턴 void

프로퍼티 상세

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

public static DependencyProperty,System.Windows DragsWindow
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows IsDraggableProperty
리턴 System.Windows.DependencyProperty