C# Class XamlBrewer.Uwp.Controls.Helpers.SelectedRegion

Inheritance: INotifyPropertyChanged
Exibir arquivo Open project: XamlBrewer/UWP-ImageCropper- Class Usage Examples

Public Methods

Method Description
ResetCorner ( double topLeftCornerCanvasLeft, double topLeftCornerCanvasTop, double bottomRightCornerCanvasLeft, double bottomRightCornerCanvasTop ) : void
UpdateCorner ( string cornerName, double leftUpdate, double topUpdate ) : void

Update the Canvas.Top and Canvas.Left of the corner.

UpdateCorner ( string cornerName, double leftUpdate, double topUpdate, double minWidthSize, double minHeightSize ) : void

Update the Canvas.Top and Canvas.Left of the corner.

UpdateSelectedRect ( double scale, double leftUpdate, double topUpdate ) : void

Update the SelectedRect when it is moved or scaled.

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
ValidateValue ( double tempValue, double from, double to ) : double

Method Details

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

ResetCorner() public method

public ResetCorner ( double topLeftCornerCanvasLeft, double topLeftCornerCanvasTop, double bottomRightCornerCanvasLeft, double bottomRightCornerCanvasTop ) : void
topLeftCornerCanvasLeft double
topLeftCornerCanvasTop double
bottomRightCornerCanvasLeft double
bottomRightCornerCanvasTop double
return void

UpdateCorner() public method

Update the Canvas.Top and Canvas.Left of the corner.
public UpdateCorner ( string cornerName, double leftUpdate, double topUpdate ) : void
cornerName string
leftUpdate double
topUpdate double
return void

UpdateCorner() public method

Update the Canvas.Top and Canvas.Left of the corner.
public UpdateCorner ( string cornerName, double leftUpdate, double topUpdate, double minWidthSize, double minHeightSize ) : void
cornerName string
leftUpdate double
topUpdate double
minWidthSize double
minHeightSize double
return void

UpdateSelectedRect() public method

Update the SelectedRect when it is moved or scaled.
public UpdateSelectedRect ( double scale, double leftUpdate, double topUpdate ) : void
scale double
leftUpdate double
topUpdate double
return void