Skip to main content

CameraControl.BorderTemplate Property

Gets or sets the ControlTemplate used to render the CameraControl‘s border and background area. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public ControlTemplate BorderTemplate { get; set; }

Property Value

Type Description
ControlTemplate

A ControlTemplate object that specifies the visual structure of the CameraControl‘s border and background area.

Remarks

The BorderTemplate property allows you to customize the control’s border representation by using templates.

The code sample below demonstrates how to display a custom border around the CameraControl and alter its background color.

<dxe:CameraControl x:Name="Camera1" ShowBorder="True" >
            <dxe:CameraControl.BorderTemplate>
                <ControlTemplate TargetType="{x:Type ContentControl}">
                    <Border BorderThickness="3" BorderBrush="Red" 
                            Background="WhiteSmoke" CornerRadius="10">
                        <ContentPresenter/>
                    </Border>
                </ControlTemplate>
            </dxe:CameraControl.BorderTemplate>
        </dxe:CameraControl>

To hide the border, set the CameraControl.ShowBorder property to false.

See Also