Skip to main content

CardView.CardStyle Property

Gets or sets a card’s style.

Namespace: DevExpress.Xpf.Grid

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


public Style CardStyle { get; set; }

Property Value

Type Description

A Style object that represents a card’s style.


Target Type: ContentControl

The following code sample demonstrates how to use the CardStyle property to display card tooltips:

Card Tooltips

    <Style TargetType="ContentControl">
        <Setter Property="ToolTip">
                            <Run Text="Unit Price:" FontWeight="Bold"/>
                            <Run Text="{Binding Row.UnitPrice, StringFormat=c}"/>
                            <Run Text="Quantity:" FontWeight="Bold"/>
                            <Run Text="{Binding Row.Quantity}"/>
                            <Run Text="Total:" FontWeight="Bold"/>
                            <Run Text="{Binding DataContext.Total, StringFormat=c}"/>

Refer to the following help topic for more information: Card Settings.

See Also