C# Class SilverFlow.Controls.Controllers.ResizeController

Calculates resizing element position and size.
Afficher le fichier Open project: Zoomicon/ZUI Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

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

Private Methods

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

Method Details

Resize() public méthode

Resizes the element.
public Resize ( double dx, double dy ) : void
dx double Displacement by X-coordinate.
dy double Displacement by Y-coordinate.
Résultat void

ResizeController() public méthode

Initializes a new instance of the ResizeController class.
public ResizeController ( IResizableElement resizableElement ) : System
resizableElement IResizableElement The resizable element.
Résultat System

SetCursor() public méthode

Determines resizing anchor and sets appropriate Cursor.
public SetCursor ( Point p ) : void
p Point Coordinates of the mouse pointer.
Résultat void

StartResizing() public méthode

Starts resizing of the element.
public StartResizing ( ) : void
Résultat void