C# Класс MetroIde.Helpers.Native.WindowMovement

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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