RadWebCamElement
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
Initializes a new instance of the RadWebCamElement class.
Properties
Gets the center elements stack.
public StackLayoutPanel CenterElementsStack { get; }
Gets the discard snapshot button element.
public RadButtonElement DiscardSnapshotButton { get; }
Gets a value indicating whether the component is curently in preview a snapshot mode.
public bool IsPreviewingSnapshot { get; set; }
Gets the left elements stack.
public StackLayoutPanel LeftElementsStack { get; }
Gets the recording dot visual element.
public LightVisualElement RecordingDotElement { get; }
Gets the recording time label element.
public RadLabelElement RecordingTimeLabel { get; }
Gets the right elements stack.
public StackLayoutPanel RightElementsStack { get; }
Gets the save snapshot button element.
public RadButtonElement SaveSnapshotButton { get; }
Gets the settings button element.
public RadButtonElement SettingsButton { get; }
Gets the take snapshot button element.
public RadButtonElement TakeSnapshotButton { get; }
Gets the toggle recording button element.
public RadButtonElement ToggleRecordingButton { get; }
Methods
Arranges the child elements of the RadWebCamElement control.
Creates the CenterElementsStack.
protected virtual StackLayoutPanel CreateCenterElementsStack()
A new StackLayoutPanel configured for the center elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates the DiscardSnapshotButton.
protected virtual RadButtonElement CreateDiscardSnapshotButton()
A new RadButtonElement configured as a discard snapshot button.
Creates the LeftElementsStack.
protected virtual StackLayoutPanel CreateLeftElementsStack()
A new StackLayoutPanel configured for the left elements.
Creates the RecordingDotElement.
protected virtual LightVisualElement CreateRecordingDotElement()
A new LightVisualElement configured as a recording dot indicator.
Creates the RecordingTimeLabel.
protected virtual RadLabelElement CreateRecordingTimeLabel()
A new RadLabelElement configured as a recording time label.
Creates the RightElementsStack.
protected virtual StackLayoutPanel CreateRightElementsStack()
A new StackLayoutPanel configured for the right elements.
Creates the SaveSnapshotButton.
protected virtual RadButtonElement CreateSaveSnapshotButton()
A new RadButtonElement configured as a save snapshot button.
Creates the SettingsButton.
protected virtual RadButtonElement CreateSettingsButton()
A new RadButtonElement configured as a settings button.
Creates the TakeSnapshotButton.
protected virtual RadButtonElement CreateTakeSnapshotButton()
A new RadButtonElement configured as a take snapshot button.
Creates the ToggleRecordingButton.
protected virtual RadButtonElement CreateToggleRecordingButton()
A new RadButtonElement configured as a toggle recording button.
Called when the DiscardSnapshotButton is clicked.
Called when the SaveSnapshotButton is clicked.
Sets up the control for displaying a snapshot or reverting to normal camera view.
protected virtual void SetIsPreviewingSnapshot(bool value)
When set to true, configures the control to preview snapshot mode; when false, returns to normal camera view mode.
Called when the SettingsButton is clicked.
Determines whether a given child should be arranged. For example when base.ArrangeOverride is called, but we have custom layout logic for current element.
protected override bool ShouldArrangeChild(RadElement child)
The child element to determine arrangement for.
Returns:true if the child should be arranged; otherwise, false.
Overrides:
Called when the TakeSnapshotButton is clicked.
Called when the ToggleRecordingButton is clicked.