wpf-devexpress-dot-xpf-dot-grid-dot-cardview-bd02be38.md
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
public ControlTemplate FocusedCardBorderTemplate { get; set; }
Public Property FocusedCardBorderTemplate As ControlTemplate
| Type | Description |
|---|---|
| ControlTemplate |
A template that displays the border.
|
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:
<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