Skip to main content

CardView.CardStyle Property

Gets or sets a card’s style.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public Style CardStyle { get; set; }

Property Value

Type Description
Style

A Style object that represents a card’s style.

Remarks

Target Type: ContentControl

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

Card Tooltips

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

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

See Also