CameraPreview Class

Definition

Camera Control to preview video. Can subscribe to video frames, software bitmap when they arrive.

[Windows.UI.Xaml.TemplatePart(Name="MediaPlayerElementControl", Type=typeof(Windows.UI.Xaml.Controls.MediaPlayerElement))]
[Windows.UI.Xaml.TemplatePart(Name="FrameSourceGroupButton", Type=typeof(Windows.UI.Xaml.Controls.Button))]
public class CameraPreview : Windows.UI.Xaml.Controls.Control
[<Windows.UI.Xaml.TemplatePart(Name="MediaPlayerElementControl", Type=typeof(Windows.UI.Xaml.Controls.MediaPlayerElement))>]
[<Windows.UI.Xaml.TemplatePart(Name="FrameSourceGroupButton", Type=typeof(Windows.UI.Xaml.Controls.Button))>]
type CameraPreview = class
    inherit Control
Public Class CameraPreview
Inherits Control
Inheritance
Windows.UI.Xaml.Controls.Control
CameraPreview
Attributes
Windows.UI.Xaml.TemplatePartAttribute

Constructors

CameraPreview()

Initializes a new instance of the CameraPreview class.

Fields

IsFrameSourceGroupButtonVisibleProperty

Using a DependencyProperty as the backing store for IsFrameSourceGroupButtonVisible. This enables animation, styling, binding, etc...

Properties

CameraHelper

Gets Camera Helper

IsFrameSourceGroupButtonVisible

Gets or sets a value indicating whether Frame Source Group Button is visible or not

Methods

OnApplyTemplate() Windows.UI.Xaml.Controls.Control.OnApplyTemplate
StartAsync()

Initialize control with a default CameraHelper instance for video preview and frame capture.

StartAsync(CameraHelper)

Initialize control with a CameraHelper instance for video preview and frame capture.

Stop()

Stops preview.

Events

PreviewFailed

Event raised when camera preview fails.

Applies to