Skip to main content

CardView.FocusedCardBorderTemplate Property

Gets or sets the template that defines the presentation of a focused card’s border. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public ControlTemplate FocusedCardBorderTemplate { get; set; }

Property Value

Type Description
ControlTemplate

A template that displays the border.

Remarks

Target Type: Control

If a card is focused but not selected, the FocusedCardBorderTemplate property changes this card’s border.

The following code sample changes a focused card’s border:

DevExpress WPF | Grid Control - CardView FocusedCardBorderTemplate

<dxg:GridControl ...
                 SelectionMode="Row">
    <dxg:GridControl.View>
        <dxg:CardView CardHeaderBinding="{Binding Name}" NavigationStyle="Row">
            <dxg:CardView.FocusedCardBorderTemplate>
                <ControlTemplate TargetType="{x:Type Control}">
                    <Border BorderThickness="3" BorderBrush="Red"/>
                </ControlTemplate>
            </dxg:CardView.FocusedCardBorderTemplate>
        </dxg:CardView>
    </dxg:GridControl.View>
</dxg:GridControl>

Refer to the following help topic for more information: Appearance Customization.

See Also