Skip to main content
A newer version of this page is available. .

CameraControl.Stretch Property

Gets or sets how the video frame is stretched. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public Stretch Stretch { get; set; }

Property Value

Type Description
Stretch

A Stretch value that specifies how the video frame is stretched.

Remarks

The Stretch property allows you to specify how the video frame is stretched to fit the control bounds. With the CameraControl.StretchDirection property, you can also specify how the video frame is scaled.

The code below demonstrates an example.

Camera1.Stretch = System.Windows.Media.Stretch.Fill;
Camera1.StretchDirection = System.Windows.Controls.StretchDirection.Both;
See Also