Back to Devexpress

Expanding and Collapsing Cards

wpf-6303-controls-and-libraries-data-grid-views-card-view-expanding-and-collapsing-cards.md

latest1.0 KB
Original Source

Expanding and Collapsing Cards

  • Nov 01, 2024

Each card displays a button in the top left corner of its header. Clicking this button collapses a card. Clicking this button once again expands the card.

A Card View provides multiple methods, allowing you to expand/collapse individual cards, as well as all cards. These methods are listed below:

MethodDescription
CardView.ExpandCardExpands the specified card.
CardView.ExpandAllCardsExpands all cards displayed within a Card View.
CardView.CollapseCardCollapses the specified card.
CardView.CollapseAllCardsCollapses all cards displayed within a Card View.

Users can use Ctrl + + and Ctrl + - shortcuts to expand and collapse a focused card.