Skip to main content

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.v24.2.dll

NuGet Package: 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