C# Класс SilverFlow.Controls.Controllers.ResizeController

Calculates resizing element position and size.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CalculateBoundsForResizing void
GetBoundsForLowerLeftCorner System.Windows.Rect
GetBoundsForLowerRightCorner System.Windows.Rect
GetBoundsForUpperLeftCorner System.Windows.Rect
GetBoundsForUpperRightCorner System.Windows.Rect
ResizeBottomLeft void
ResizeBottomRight void
ResizeTopLeft void
ResizeTopRight void

Открытые методы

Метод Описание
Resize ( double dx, double dy ) : void

Resizes the element.

ResizeController ( IResizableElement resizableElement ) : System

Initializes a new instance of the ResizeController class.

SetCursor ( Point p ) : void

Determines resizing anchor and sets appropriate Cursor.

StartResizing ( ) : void

Starts resizing of the element.

Приватные методы

Метод Описание
CalculateBoundsForResizing ( ) : void

Calculates bounds for resizing.

GetBoundsForLowerLeftCorner ( ) : Rect

Calculates bounds for resizing by the lower left corner.

GetBoundsForLowerRightCorner ( ) : Rect

Calculates bounds for resizing by the lower right corner.

GetBoundsForUpperLeftCorner ( ) : Rect

Calculates bounds for resizing by the upper left corner.

GetBoundsForUpperRightCorner ( ) : Rect

Calculates bounds for resizing by the upper right corner.

ResizeBottomLeft ( double dx, double dy ) : void

Resizes the window by the lower left corner of the window.

ResizeBottomRight ( double dx, double dy ) : void

Resizes the window by the bottom right corner of the window.

ResizeTopLeft ( double dx, double dy ) : void

Resizes the window by the top left corner of the window.

ResizeTopRight ( double dx, double dy ) : void

Resizes the window by the top right corner of the window.

Описание методов

Resize() публичный Метод

Resizes the element.
public Resize ( double dx, double dy ) : void
dx double Displacement by X-coordinate.
dy double Displacement by Y-coordinate.
Результат void

ResizeController() публичный Метод

Initializes a new instance of the ResizeController class.
public ResizeController ( IResizableElement resizableElement ) : System
resizableElement IResizableElement The resizable element.
Результат System

SetCursor() публичный Метод

Determines resizing anchor and sets appropriate Cursor.
public SetCursor ( Point p ) : void
p Point Coordinates of the mouse pointer.
Результат void

StartResizing() публичный Метод

Starts resizing of the element.
public StartResizing ( ) : void
Результат void