Skip to main content
A newer version of this page is available. .

PictureEdit.TakePictureDialogShowing Event

Fires when the Take Picture dialog is about to be displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Events")]
public event TakePictureDialogShowingEventHandler TakePictureDialogShowing

Event Data

The TakePictureDialogShowing event's data class is DevExpress.XtraEditors.Camera.TakePictureDialogShowingEventArgs.

Remarks

The TakePictureDialogShowing event allows you to perform actions when the Take Picture dialog is about to be displayed.

To cancel the dialog, set the event’s Cancel parameter to true.

To modify the dialog (for instance, change the dialog’s title) use the event’s Form parameter.

private void pictureEdit1_TakePictureDialogShowing(object sender, DevExpress.XtraEditors.Camera.TakePictureDialogShowingEventArgs e) {
    e.Form.Text = "Camera";
}

The PictureEdit.TakePictureDialogShowing and RepositoryItemPictureEdit.TakePictureDialogShowing events are equivalent.

See Also