Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PictureEdit.ShowTakePictureDialog() Method

Displays the Take Picture dialog, which allows users to take snapshots from a connected webcam.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

#Declaration

public DialogResult ShowTakePictureDialog()

#Returns

Type Description
DialogResult

DialogResult.OK, if the snapshot is taken; DialogResult.Cancel, if no snapshot is taken.

#Remarks

Enable the RepositoryItemPictureEdit.ShowCameraMenuItem option to display the Take Image from Camera command in the editor’s context menu. This command invokes the Take Picture dialog that allows end-users to take a snapshot from a connected webcam.

image

The ShowTakePictureDialog method invokes the Take Picture dialog from code.

The RepositoryItemPictureEdit.TakePictureDialogShowing and RepositoryItemPictureEdit.TakePictureDialogClosed events allow you to perform additional actions when the dialog is loaded and closed, respectively.

See Also