CameraControl.StretchDirection Property
In This Article
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 |
---|---|
Stretch |
A Stretch |
#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