Back to Devexpress

TakePictureDialogShowingEventArgs.Device Property

windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-takepicturedialogshowingeventargs.md

latest2.5 KB
Original Source

TakePictureDialogShowingEventArgs.Device Property

Gets or sets the camera device.

Namespace : DevExpress.XtraEditors.Camera

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public CameraDevice Device { get; set; }
vb
Public Property Device As CameraDevice

Property Value

TypeDescription
CameraDevice

The camera device.

|

Remarks

The Take Picture dialog saves the currently selected camera device and its resolution in the system registry when a user closes the dialog. These settings are reused the next time a user opens the dialog. If the system registry contains no information on the previously used camera device, the Take Picture dialog will use the default camera device (CameraControl.GetDefaultDevice).

To specify a custom camera device, assign it to the Device event parameter. See the CameraControl.GetDevices topic for information on how to obtain a specific camera device.

When you create a TakePictureDialog object, you can specify a camera device with the TakePictureDialog.Device property. In this case, the Device parameter of the TakePictureDialog.Showing event returns the specified camera device.

Use the TakePictureDialogShowingEventArgs.ResolutionMode property to specify the camera resolution.

See Also

TakePictureDialogShowingEventArgs Class

TakePictureDialogShowingEventArgs Members

DevExpress.XtraEditors.Camera Namespace