Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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