Skip to content
On this page

Card

Cards contain content about a single subject.

  • Use cards to contain related elements.
  • Three styles: FilledCardStyle, ElevatedCardStyle, OutlinedCardStyle.
  • Contents can include anything from images to headlines, supporting text, buttons, and lists.
  • Can also contain other components.
  • Cards have flexible layouts and dimensions based on their contents.

Examples

xml
<mdc:Card Style="{DynamicResource FilledCardStyle}">
    ...
</mdc:Card>
<mdc:Card Style="{DynamicResource ElevatedCardStyle}">
    ...
</mdc:Card>
<mdc:Card Style="{DynamicResource OutlinedCardStyle}">
    ...
</mdc:Card>

Properties

nametypedefalut
ContentView
BackgroundColorColorstyle
ShapeShapestyle
Elevationintstyle
OutlineColorColorstyle
StyleStyleFilled