C# Class PhotoSharingApp.Universal.Views.SelectedRegion

Encapsulates the cropping region used by CropControl.
Inheritance: PhotoSharingApp.Universal.ComponentModel.ObservableObjectBase
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method Description
ResetCorner ( double topLeftCornerCanvasLeft, double topLeftCornerCanvasTop, double bottomRightCornerCanvasLeft, double bottomRightCornerCanvasTop ) : void
ResizeSelectedRect ( double scale ) : void

Resizes the SelectedRect.

UpdateCorner ( string cornerName, double leftUpdate, double topUpdate, bool singleCornerMovement = false ) : void

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

UpdateCorner ( string cornerName, double leftUpdate, double topUpdate, double minWidthSize, double minHeightSize, bool singleCornerMovement = false ) : 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

ResizeSelectedRect() public method

Resizes the SelectedRect.
public ResizeSelectedRect ( double scale ) : void
scale double The scaling.
return void

UpdateCorner() public method

Update the Canvas.Top and Canvas.Left of the corner.
public UpdateCorner ( string cornerName, double leftUpdate, double topUpdate, bool singleCornerMovement = false ) : void
cornerName string
leftUpdate double
topUpdate double
singleCornerMovement bool
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, bool singleCornerMovement = false ) : void
cornerName string
leftUpdate double
topUpdate double
minWidthSize double
minHeightSize double
singleCornerMovement bool
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