Class RadWebCamElement
Represents the UI that users can interact with in a RadWebCam control.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadWebCam.dll
Syntax
public class RadWebCamElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadWebCamElement(RadWebCam)
Initializes a new instance of the RadWebCamElement class.
Declaration
public RadWebCamElement(RadWebCam radWebCam)
Parameters
|
RadWebCam
radWebCam
The RadWebCam control that owns this element. |
Properties
CenterElementsStack
Gets the center elements stack.
Declaration
public StackLayoutPanel CenterElementsStack { get; }
Property Value
|
StackLayoutPanel
|
DiscardSnapshotButton
Gets the discard snapshot button element.
Declaration
public RadButtonElement DiscardSnapshotButton { get; }
Property Value
|
RadButtonElement
|
IsPreviewingSnapshot
Gets a value indicating whether the component is curently in preview a snapshot mode.
Declaration
public bool IsPreviewingSnapshot { get; set; }
Property Value
|
System.Boolean
|
LeftElementsStack
Gets the left elements stack.
Declaration
public StackLayoutPanel LeftElementsStack { get; }
Property Value
|
StackLayoutPanel
|
RecordingDotElement
Gets the recording dot visual element.
Declaration
public LightVisualElement RecordingDotElement { get; }
Property Value
|
LightVisualElement
|
RecordingTimeLabel
Gets the recording time label element.
Declaration
public RadLabelElement RecordingTimeLabel { get; }
Property Value
|
RadLabelElement
|
RightElementsStack
Gets the right elements stack.
Declaration
public StackLayoutPanel RightElementsStack { get; }
Property Value
|
StackLayoutPanel
|
SaveSnapshotButton
Gets the save snapshot button element.
Declaration
public RadButtonElement SaveSnapshotButton { get; }
Property Value
|
RadButtonElement
|
SettingsButton
Gets the settings button element.
Declaration
public RadButtonElement SettingsButton { get; }
Property Value
|
RadButtonElement
|
TakeSnapshotButton
Gets the take snapshot button element.
Declaration
public RadButtonElement TakeSnapshotButton { get; }
Property Value
|
RadButtonElement
|
ToggleRecordingButton
Gets the toggle recording button element.
Declaration
public RadButtonElement ToggleRecordingButton { get; }
Property Value
|
RadButtonElement
|
Methods
ArrangeOverride(SizeF)
Arranges the child elements of the RadWebCamElement control.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The final size that the parent element can allocate to the child element. |
Returns
|
System.Drawing.SizeF
The actual size used by the element. |
Overrides
CreateCenterElementsStack()
Creates the CenterElementsStack.
Declaration
protected virtual StackLayoutPanel CreateCenterElementsStack()
Returns
|
StackLayoutPanel
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
|
RadButtonElement
A new RadButtonElement configured as a discard snapshot button. |
CreateLeftElementsStack()
Creates the LeftElementsStack.
Declaration
protected virtual StackLayoutPanel CreateLeftElementsStack()
Returns
|
StackLayoutPanel
A new StackLayoutPanel configured for the left elements. |
CreateRecordingDotElement()
Creates the RecordingDotElement.
Declaration
protected virtual LightVisualElement CreateRecordingDotElement()
Returns
|
LightVisualElement
A new LightVisualElement configured as a recording dot indicator. |
CreateRecordingTimeLabel()
Creates the RecordingTimeLabel.
Declaration
protected virtual RadLabelElement CreateRecordingTimeLabel()
Returns
|
RadLabelElement
A new RadLabelElement configured as a recording time label. |
CreateRightElementsStack()
Creates the RightElementsStack.
Declaration
protected virtual StackLayoutPanel CreateRightElementsStack()
Returns
|
StackLayoutPanel
A new StackLayoutPanel configured for the right elements. |
CreateSaveSnapshotButton()
Creates the SaveSnapshotButton.
Declaration
protected virtual RadButtonElement CreateSaveSnapshotButton()
Returns
|
RadButtonElement
A new RadButtonElement configured as a save snapshot button. |
CreateSettingsButton()
Creates the SettingsButton.
Declaration
protected virtual RadButtonElement CreateSettingsButton()
Returns
|
RadButtonElement
A new RadButtonElement configured as a settings button. |
CreateTakeSnapshotButton()
Creates the TakeSnapshotButton.
Declaration
protected virtual RadButtonElement CreateTakeSnapshotButton()
Returns
|
RadButtonElement
A new RadButtonElement configured as a take snapshot button. |
CreateToggleRecordingButton()
Creates the ToggleRecordingButton.
Declaration
protected virtual RadButtonElement CreateToggleRecordingButton()
Returns
|
RadButtonElement
A new RadButtonElement configured as a toggle recording button. |
DiscardSnapshot_Click(Object, EventArgs)
Called when the DiscardSnapshotButton is clicked.
Declaration
protected virtual void DiscardSnapshot_Click(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
SaveSnapshot_Click(Object, EventArgs)
Called when the SaveSnapshotButton is clicked.
Declaration
protected virtual void SaveSnapshot_Click(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
SetIsPreviewingSnapshot(Boolean)
Sets up the control for displaying a snapshot or reverting to normal camera view.
Declaration
protected virtual void SetIsPreviewingSnapshot(bool value)
Parameters
|
System.Boolean
value
When set to |
Settings_Click(Object, EventArgs)
Called when the SettingsButton is clicked.
Declaration
protected virtual void Settings_Click(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
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
|
RadElement
child
The child element to determine arrangement for. |
Returns
|
System.Boolean
|
Overrides
TakeSnapshot_Click(Object, EventArgs)
Called when the TakeSnapshotButton is clicked.
Declaration
protected virtual void TakeSnapshot_Click(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
ToggleRecording_Click(Object, EventArgs)
Called when the ToggleRecordingButton is clicked.
Declaration
protected virtual void ToggleRecording_Click(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|