windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-2c1e20f2.md
Gets or sets whether the context menu contains a command that allows an end user to take a picture from a webcam.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(CameraMenuItemVisibility.Never)]
[DXCategory("Behavior")]
public CameraMenuItemVisibility ShowCameraMenuItem { get; set; }
<DXCategory("Behavior")>
<DefaultValue(CameraMenuItemVisibility.Never)>
Public Property ShowCameraMenuItem As CameraMenuItemVisibility
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraEditors.Controls.CameraMenuItemVisibility | Never |
A DevExpress.XtraEditors.Controls.CameraMenuItemVisibility enumeration value that specifies whether the context menu contains a command that allows an end user to take a picture from a webcam.
|
The PictureEdit control can display the Take Image from Camera menu item that allows an end user to take a snapshot from a webcam. See the figure below.
The ShowCameraMenuItem property specifies whether this menu item is visible. The following modes are available:
With a click on the menu item, an end-user invokes the Take Picture dialog. When a snapshot is taken, it is displayed in the PictureEdit control. To learn more about the Take Picture dialog, see the corresponding section in the CameraControl topic.
You can invoke the Take Picture dialog from code, using the PictureEdit.ShowTakePictureDialog() method.
The following events allow you to customize the dialog, camera device, resolution and captured image:
See Also
RepositoryItemPictureEdit Class