Skip to content

MenuViewModelBase

Extends WebContextViewModelBase with a Menu property; MenuControllerBase.OnActionExecuted looks for this type via a cast and populates Menu for models that derive from it, skipping menu decoration otherwise.

Purpose

  • Extends WebContextViewModelBase with a Menu property; MenuControllerBase.OnActionExecuted looks for this type via a cast and populates Menu for models that derive from it, skipping menu decoration otherwise.

Context

  • Namespace: SAIF.Web.Mvc.ViewModels
  • Assembly/package: SAIF.Framework.Web.Mvc (source-shipping NuGet package)
  • Kind: abstract class

Public members

Member Signature Purpose
Menu public MenuViewModel Menu { get; set; } Holds the fully decorated menu (current item, category, expansion state, external-user flag) populated by MenuControllerBase.OnActionExecuted.

Sources

  • src/Web.Mvc/ViewModels/Bases/MenuViewModelBase.cs