ClassRadWebCamElement
Represents the UI that users can interact with in a RadWebCam control.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadWebCam.dll
Syntax:
public class RadWebCamElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadWebCamElement
Implements:
Inherited Members
Constructors
RadWebCamElement(RadWebCam)
Initializes a new instance of the RadWebCamElement class.
Properties
CenterElementsStack
Gets the center elements stack.
Declaration
public StackLayoutPanel CenterElementsStack { get; }
Property Value
DiscardSnapshotButton
Gets the discard snapshot button element.
Declaration
public RadButtonElement DiscardSnapshotButton { get; }
Property Value
IsPreviewingSnapshot
Gets a value indicating whether the component is curently in preview a snapshot mode.
LeftElementsStack
Gets the left elements stack.
Declaration
public StackLayoutPanel LeftElementsStack { get; }
Property Value
RecordingDotElement
Gets the recording dot visual element.
Declaration
public LightVisualElement RecordingDotElement { get; }
Property Value
RecordingTimeLabel
Gets the recording time label element.
Declaration
public RadLabelElement RecordingTimeLabel { get; }
Property Value
RightElementsStack
Gets the right elements stack.
Declaration
public StackLayoutPanel RightElementsStack { get; }
Property Value
SaveSnapshotButton
Gets the save snapshot button element.
Declaration
public RadButtonElement SaveSnapshotButton { get; }
Property Value
SettingsButton
Gets the settings button element.
Declaration
public RadButtonElement SettingsButton { get; }
Property Value
TakeSnapshotButton
Gets the take snapshot button element.
Declaration
public RadButtonElement TakeSnapshotButton { get; }
Property Value
ToggleRecordingButton
Gets the toggle recording button element.
Declaration
public RadButtonElement ToggleRecordingButton { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the child elements of the RadWebCamElement control.
CreateCenterElementsStack()
Creates the CenterElementsStack.
Declaration
protected virtual StackLayoutPanel CreateCenterElementsStack()
Returns
A new StackLayoutPanel configured for the center elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateDiscardSnapshotButton()
Creates the DiscardSnapshotButton.
Declaration
protected virtual RadButtonElement CreateDiscardSnapshotButton()
Returns
A new RadButtonElement configured as a discard snapshot button.
CreateLeftElementsStack()
Creates the LeftElementsStack.
Declaration
protected virtual StackLayoutPanel CreateLeftElementsStack()
Returns
A new StackLayoutPanel configured for the left elements.
CreateRecordingDotElement()
Creates the RecordingDotElement.
Declaration
protected virtual LightVisualElement CreateRecordingDotElement()
Returns
A new LightVisualElement configured as a recording dot indicator.
CreateRecordingTimeLabel()
Creates the RecordingTimeLabel.
Declaration
protected virtual RadLabelElement CreateRecordingTimeLabel()
Returns
A new RadLabelElement configured as a recording time label.
CreateRightElementsStack()
Creates the RightElementsStack.
Declaration
protected virtual StackLayoutPanel CreateRightElementsStack()
Returns
A new StackLayoutPanel configured for the right elements.
CreateSaveSnapshotButton()
Creates the SaveSnapshotButton.
Declaration
protected virtual RadButtonElement CreateSaveSnapshotButton()
Returns
A new RadButtonElement configured as a save snapshot button.
CreateSettingsButton()
Creates the SettingsButton.
Declaration
protected virtual RadButtonElement CreateSettingsButton()
Returns
A new RadButtonElement configured as a settings button.
CreateTakeSnapshotButton()
Creates the TakeSnapshotButton.
Declaration
protected virtual RadButtonElement CreateTakeSnapshotButton()
Returns
A new RadButtonElement configured as a take snapshot button.
CreateToggleRecordingButton()
Creates the ToggleRecordingButton.
Declaration
protected virtual RadButtonElement CreateToggleRecordingButton()
Returns
A new RadButtonElement configured as a toggle recording button.
DiscardSnapshot_Click(object, EventArgs)
Called when the DiscardSnapshotButton is clicked.
SaveSnapshot_Click(object, EventArgs)
Called when the SaveSnapshotButton is clicked.
SetIsPreviewingSnapshot(bool)
Sets up the control for displaying a snapshot or reverting to normal camera view.
Declaration
protected virtual void SetIsPreviewingSnapshot(bool value)
Parameters
value
When set to true, configures the control to preview snapshot mode; when false, returns to normal camera view mode.
Settings_Click(object, EventArgs)
Called when the SettingsButton is clicked.
ShouldArrangeChild(RadElement)
Determines whether a given child should be arranged. For example when base.ArrangeOverride is called, but we have custom layout logic for current element.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
child
The child element to determine arrangement for.
Returns
true if the child should be arranged; otherwise, false.
Overrides
TakeSnapshot_Click(object, EventArgs)
Called when the TakeSnapshotButton is clicked.
ToggleRecording_Click(object, EventArgs)
Called when the ToggleRecordingButton is clicked.