Skip to main content

CameraControl.StretchDirection Property

Gets or sets a value that specifies the direction that the video frame is scaled. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public StretchDirection StretchDirection { get; set; }

Property Value

Type Description
StretchDirection

A StretchDirection object that specifies the direction that the video frame is scaled.

Remarks

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

The code below demonstrates an example.

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