C# Class MetroIde.Helpers.Native.WindowMovement

Mostrar archivo Open project: ChadSki/Quickbeam

Public Properties

Property Type Description
DragsWindow System.Windows.DependencyProperty
IsDraggableProperty System.Windows.DependencyProperty

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

GetDragsWindow() public static method

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.
return bool

GetIsDraggable() public static method

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.
return bool

HasDragsWindowEnabled() public static method

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.
return bool

SetDragsWindow() public static method

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.
return void

SetIsDraggable() public static method

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.
return void

Property Details

DragsWindow public_oe static_oe property

public static DependencyProperty,System.Windows DragsWindow
return System.Windows.DependencyProperty

IsDraggableProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsDraggableProperty
return System.Windows.DependencyProperty