C# Class MetroIde.Helpers.Native.WindowMovement

Afficher le fichier Open project: ChadSki/Quickbeam

Méthodes publiques

Свойство Type Description
DragsWindow System.Windows.DependencyProperty
IsDraggableProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat bool

GetIsDraggable() public static méthode

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.
Résultat bool

HasDragsWindowEnabled() public static méthode

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.
Résultat bool

SetDragsWindow() public static méthode

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.
Résultat void

SetIsDraggable() public static méthode

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.
Résultat void

Property Details

DragsWindow public_oe static_oe property

public static DependencyProperty,System.Windows DragsWindow
Résultat System.Windows.DependencyProperty

IsDraggableProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsDraggableProperty
Résultat System.Windows.DependencyProperty