Back to Devexpress

PictureEdit.TakePictureDialogClosed Event

windowsforms-devexpress-dot-xtraeditors-dot-pictureedit-bb4082a6.md

latest2.4 KB
Original Source

PictureEdit.TakePictureDialogClosed Event

Fires when the Take Picture dialog is closed. Allows you to get the dialog result and captured image, and replace this image.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event TakePictureDialogClosedEventHandler TakePictureDialogClosed
vb
<DXCategory("Events")>
Public Event TakePictureDialogClosed As TakePictureDialogClosedEventHandler

Event Data

The TakePictureDialogClosed event's data class is DevExpress.XtraEditors.Camera.TakePictureDialogClosedEventArgs.

Remarks

The TakePictureDialogClosed event allows you to perform actions when the Take Picture dialog is closed.

If an end-user has taken a snapshot and pressed the Save button, the event’s Snapshot parameter contains this picture. You can modify the Snapshot parameter to replace the snapshot with a custom image. If no picture was taken in the dialog, the Snapshot parameter contains null. In this case, modification of the Snapshot parameter is not in effect.

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

See Also

ShowCameraMenuItem

ShowTakePictureDialog()

TakePictureDialogShowing

PictureEdit Class

PictureEdit Members

DevExpress.XtraEditors Namespace