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

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