Class GridRowViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Represents a view model for a grid row in the frontend.
public class GridRowViewModel : ViewModelBase, IViewModelTemplatePath
- Inheritance
-
GridRowViewModel
- Implements
- Inherited Members
Constructors
GridRowViewModel()
Initializes a new instance of the GridRowViewModel class.
public GridRowViewModel()
Properties
BackgroundImage
Gets or sets the background image.
public ImageFileViewModel? BackgroundImage { get; set; }
Property Value
- ImageFileViewModel
The image as an ImageFileViewModel.
BottomSpacing
Gets or sets the bottom spacing.
public int? BottomSpacing { get; set; }
Property Value
- int?
ColorScheme
Gets or sets the color scheme.
public ColorSchemeViewModel? ColorScheme { get; set; }
Property Value
- ColorSchemeViewModel
The color scheme as an ColorSchemeViewModel.
Columns
Gets the columns.
public IEnumerable<GridColumnViewModel> Columns { get; }
Property Value
ContainerWidth
Gets or sets the container width.
public int? ContainerWidth { get; set; }
Property Value
- int?
Definition
Gets or sets the grid row definition.
public GridRowDefinition? Definition { get; }
Property Value
GapX
Gets or sets the gap size between columns.
public int? GapX { get; set; }
Property Value
- int?
GapY
Gets or sets the gap size between rows.
public int? GapY { get; set; }
Property Value
- int?
Id
Gets or sets the id of the row.
public int Id { get; }
Property Value
- int
213
Item
Gets an ItemViewModel instance of this row item.
public ItemViewModel? Item { get; }
Property Value
- ItemViewModel
An ItemViewModel instance.
TemplatePath
Gets or sets the template path.
public string? TemplatePath { get; }
Property Value
TopSpacing
Gets or sets the top spacing.
public int? TopSpacing { get; set; }
Property Value
- int?
VerticalAlignment
Gets or sets the vertical alignment
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
Column(int)
Gets the column at the specified number.
public GridColumnViewModel? Column(int number)
Parameters
numberintThe column number.
Returns
- GridColumnViewModel
The GridColumnViewModel at the specified number.