CameraCaptureUIPhotoCaptureSettings.AllowCropping Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.