C# Class PhotoSharingApp.Universal.Views.SelectedRegion

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Méthode Description
ValidateValue ( double tempValue, double from, double to ) : double

Method Details

OnPropertyChanged() protected méthode

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
Résultat void

ResetCorner() public méthode

public ResetCorner ( double topLeftCornerCanvasLeft, double topLeftCornerCanvasTop, double bottomRightCornerCanvasLeft, double bottomRightCornerCanvasTop ) : void
topLeftCornerCanvasLeft double
topLeftCornerCanvasTop double
bottomRightCornerCanvasLeft double
bottomRightCornerCanvasTop double
Résultat void

ResizeSelectedRect() public méthode

Resizes the SelectedRect.
public ResizeSelectedRect ( double scale ) : void
scale double The scaling.
Résultat void

UpdateCorner() public méthode

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
Résultat void

UpdateCorner() public méthode

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
Résultat void

UpdateSelectedRect() public méthode

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