CardView Class

A ViewBase dervied class that implements a custom card style view.
Public Class CardView 
   Inherits ViewBase
public class CardView : ViewBase 
The following example code demonstrates how to reference the CardViewSettings using xamDataCards or xamDataPresenter.

Imports Infragistics.Windows.DataPresenter

Me.xamDataCards1.ViewSettings.ShouldCollapseEmptyCells = True

Dim cardView1 As CardView = TryCast(Me.xamDataPresenter1.View, CardView)

If cardView1 IsNot Nothing Then
    cardView1.ShouldCollapseEmptyCells = True
End If
using Infragistics.Windows.DataPresenter;

this.xamDataCards1.ViewSettings.ShouldCollapseEmptyCells = true;

CardView cardView1 = this.xamDataPresenter1.View as CardView;

if(cardView1 != null)
    cardView1.ShouldCollapseEmptyCells = true;
<igDP:XamDataCards Name="xamDataCards1">
<igDP:CardViewSettings ShouldCollapseEmptyCells="True" />

<igDP:XamDataPresenter Name="xamDataPresenter1">
<!--If you do not set the View property, xamDataPresenter automatically uses a GridView object-->
<igDP:CardViewSettings ShouldCollapseEmptyCells="True"  />


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also