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.CardStyle Property

Gets or sets a card’s style.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.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