Share via


CameraCaptureUIPhotoCaptureSettings.AllowCropping Property

Definition

Gets or sets a value specifying whether the CameraCaptureUI provides controls that allow the user to crop a photo after it has been captured.

public:
 property bool AllowCropping { bool get(); void set(bool value); };
bool AllowCropping();

void AllowCropping(bool value);
public bool AllowCropping { get; set; }
var boolean = cameraCaptureUIPhotoCaptureSettings.allowCropping;
cameraCaptureUIPhotoCaptureSettings.allowCropping = boolean;
Public Property AllowCropping As Boolean

Property Value

Boolean

bool

True if the user is allowed to crop the photo; otherwise, false.

Remarks

AllowCropping is true by default.

Use CroppedAspectRatio or CroppedSizeInPixels to set constraints on the dimensions of the cropped photo. You must only specify a value for one of these properties. Specifying both the size in pixels and the aspect ratio will result in an invalid argument exception. Setting a value for CroppedAspectRatio or CroppedSizeInPixels when AllowCropping is set to false will result in an invalid argument exception.

Applies to