Class AreaViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
AreaViewModel represents the rendering context used when an area is rendered.
public class AreaViewModel : ViewModelBase
- Inheritance
-
AreaViewModel
- Inherited Members
Constructors
AreaViewModel()
Initializes a new instance of the AreaViewModel class.
public AreaViewModel()
Properties
CartPage
Gets or sets the cart page.
public PageReferenceViewModel? CartPage { get; set; }
Property Value
- PageReferenceViewModel
The cart page as a PageReferenceViewModel.
ColorScheme
Gets or sets the color scheme.
public ColorSchemeViewModel? ColorScheme { get; set; }
Property Value
- ColorSchemeViewModel
The color scheme as an ColorSchemeViewModel.
CreatedDate
Gets or sets the created date. This property is set based on the value of the CreatedAt property.
On it's initiallization the value of Now is used, which is based on the computers local environment.
public DateTime CreatedDate { get; set; }
Property Value
- DateTime
The created date as a date time e.g. "2024-02-24 12:21".
DateFormat
Gets or sets the date format. The format is of the form ShortDatePattern and based on the current CultureInfo of the area. The culture is chosen by the user when setting up the Area in the UI.
public string? DateFormat { get; set; }
Property Value
- string
The date format specific to the chosen culture for the area.
FirstActivePage
Gets or sets the first active page.
public PageReferenceViewModel? FirstActivePage { get; set; }
Property Value
- PageReferenceViewModel
The first active page as a PageReferenceViewModel.
FirstPage
Gets or sets the first page.
public PageReferenceViewModel? FirstPage { get; set; }
Property Value
- PageReferenceViewModel
The first page as a PageReferenceViewModel.
ID
Gets or sets the identifier.
public int ID { get; set; }
Property Value
- int
The identifier e.g. '5'.
Item
Gets or sets the item.
public ItemViewModel? Item { get; set; }
Property Value
- ItemViewModel
The item as a ItemViewModel.
ItemId
Gets or sets the item identifier based of the ItemId.
public string? ItemId { get; set; }
Property Value
- string
The item identifier e.g. '5'.
ItemType
Gets or sets the type of the item.
public string? ItemType { get; set; }
Property Value
- string
The type of the item e.g. 'Swift_master'.
Languages
Gets or sets the languages.
public IList<AreaLanguageViewModel>? Languages { get; set; }
Property Value
- IList<AreaLanguageViewModel>
The languages as IList<T>.
Name
Gets or sets the name.
public string? Name { get; set; }
Property Value
- string
The name e.g. "New area view model".
SearchPage
Gets or sets the search page.
public PageReferenceViewModel? SearchPage { get; set; }
Property Value
- PageReferenceViewModel
The search page as a PageReferenceViewModel.
UpdatedDate
Gets or sets the updated date. This property is set based on the value of the LastModifiedAt property.
The value of the property is based on the computers local environment.
public DateTime UpdatedDate { get; set; }
Property Value
- DateTime
The updated date as a date time e.g. "2024-02-24 12:21".