aspnet-devexpress-dot-web-dot-aspxcardviewbreakpointslayoutsettings-4838f109.md
Provides access to the CardView’s breakpoints collection.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public BreakpointsLayoutCollection<CardViewBreakpoint> Breakpoints { get; }
Public ReadOnly Property Breakpoints As BreakpointsLayoutCollection(Of CardViewBreakpoint)
| Type | Description |
|---|---|
| BreakpointsLayoutCollection<CardViewBreakpoint> |
An BreakpointsLayoutCollection<T><CardViewBreakpoint,> object that represents a collection of breakpoints.
|
You can access this nested property as listed below:
| Object Type | Path to Breakpoints |
|---|---|
| ASPxCardViewAdaptivitySettings |
.BreakpointsLayoutSettings .Breakpoints
|
Use the Breakpoints property to define how many cards the Card View displays in a row if there are no specified breakpoints for a given browser’s width.
The following example illustrates how to implement three different layout scenarios for different browser sizes (Small, Medium, Large):
CardView.Settings.LayoutMode = Layout.Breakpoints;
CardView.SettingsAdaptivity.BreakpointsLayoutSettings.CardsPerRow = 5;
CardView.SettingsAdaptivity.BreakpointsLayoutSettings.Breakpoints.AddRange(new List<CardViewBreakpoint>() {
new CardViewBreakpoint() { DeviceSize = BreakpointsLayoutDeviceSizes.Small, CardsPerRow = 3 },
new CardViewBreakpoint() { DeviceSize = BreakpointsLayoutDeviceSizes.Custom, MaxWidth = 1300, CardsPerRow = 4 },
});
See Also
ASPxCardViewBreakpointsLayoutSettings Class