Table of Contents

Class MenuItemViewModel

Namespace
Innova.Prism.Library.Controls.Menu
Assembly
Innova.Prism.Library.dll

Represents a view model for a simple menu item.

public class MenuItemViewModel : BindableBase, INotifyPropertyChanged, IMenuViewModel
Inheritance
MenuItemViewModel
Implements
Derived

Constructors

MenuItemViewModel()

Initializes a new instance of the MenuItemViewModel class.

Properties

Command

Gets or sets the command associated with the menu item.

CommandParameter

Gets or sets the command parameter of the menu item.

Description

Gets or sets the description of the menu item.

ImageSource

Gets or sets the image source of the menu item.

IsExpanded

Gets or sets a value indicating whether the menu item is expanded.

MenuItems

Gets or sets the collection of menu items.

SortOrder

Gets or sets the sort order of the menu item.

Title

Gets or sets the title of the menu item.

Methods

CanExecuteCommand()

Determines whether the command associated with the menu item can execute.

ExecuteCommand()

Executes the command associated with the menu item.