C# Class SilverFlow.Controls.Controllers.ResizeController

Calculates resizing element position and size.
Datei anzeigen Open project: Zoomicon/ZUI Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

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

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

ResizeController() public method

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

SetCursor() public method

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

StartResizing() public method

Starts resizing of the element.
public StartResizing ( ) : void
return void