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