Back to Devexpress

CardView.FocusedCardBorderTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-cardview-bd02be38.md

latest2.2 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ControlTemplate FocusedCardBorderTemplate { get; set; }
vb
Public Property FocusedCardBorderTemplate As ControlTemplate

Property Value

TypeDescription
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:

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

CardView Class

CardView Members

DevExpress.Xpf.Grid Namespace