Commands
The actions in the UI of the RadWebCam
control are executed via commands. To access them use the RadWebCamCommands
static class.
The following commands are available:
-
TakeSnapshot
—Takes a snapshot of the video feed. -
SaveSnapshot
—Fires the SnapshotTaken event where you can save the BitmapSource object. -
DiscardSnapshot
—Discards the snapshot. -
ToggleRecording
—Toggles the video recording. -
ShowSettingsDialog
—Shows the settings dialog that allows you to adjust the camera options. -
Start
—Starts displaying the video feed from the camera. -
Stop
—Stops displaying the video feed from the camera.
You can use the commands outside of the RadWebCam control or modify their default behavior.
Using Commands Manually
The RadWebCamCommands can be attached to a button or another element supporting commands which is defined outside of the RadWebCam control.
Use RadWebCamCommands
Modifying Command Behavior
The RadWebCamCommands uses RoutedUICommands, which means that you can override their behavior as any other RoutedUICommand.