Tab
A newer version of this page is available. Switch to the current version.

CardViewCardStyle Class

Serves as a base for classes that provide style settings used to paint cards within the ASPxCardView.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class CardViewCardStyle :
    CardViewStyleBase
Public Class CardViewCardStyle
    Inherits CardViewStyleBase

Remarks

Example

WebForms:

<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="InvoicesDataSource" Width="100%">
    <Columns>
    ...
    </Columns> 
    <Styles>
        <Card Height="10px" />
    </Styles>  
</dx:ASPxCardView>

MVC:

@Html.DevExpress().CardView(settings => {
    settings.Name = "cardView";
    ...
    settings.Styles.Card.Height = Unit.Pixel(10);

}).Bind(Model).GetHtml()
See Also