using Prism.Mvvm;
using System.Collections.ObjectModel;
namespace CapMachine.Wpf.Models
{
///
/// 菜单功能模型
///
public class NavigationItem : BindableBase
{
public NavigationItem(
string icon,
string name,
string pageName,
ObservableCollection items = null)
{
Icon = icon;
Name = name;
PageName = pageName;
Items = items;
}
private string name;
private string icon;
private ObservableCollection items;
///
/// 图标
///
public string Icon
{
get { return icon; }
set { icon = value; RaisePropertyChanged(); }
}
///
/// 菜单名称
///
public string Name
{
get { return name; }
set { name = value; RaisePropertyChanged(); }
}
///
/// 菜单导航的页面
///
public string PageName { get; set; }
///
/// 导航菜单列表
/// 菜单子项
///
public ObservableCollection Items
{
get { return items; }
set { items = value; RaisePropertyChanged(); }
}
}
}