添加项目文件。
This commit is contained in:
65
OrpaonEMS.App/Models/NavigationItem.cs
Normal file
65
OrpaonEMS.App/Models/NavigationItem.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrpaonEMS.App.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 菜单功能模型
|
||||
/// </summary>
|
||||
public class NavigationItem : BindableBase
|
||||
{
|
||||
public NavigationItem(
|
||||
string icon,
|
||||
string name,
|
||||
string pageName,
|
||||
ObservableCollection<NavigationItem> items = null)
|
||||
{
|
||||
Icon = icon;
|
||||
Name = name;
|
||||
PageName = pageName;
|
||||
Items = items;
|
||||
}
|
||||
|
||||
private string name;
|
||||
private string icon;
|
||||
private ObservableCollection<NavigationItem> items;
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string Icon
|
||||
{
|
||||
get { return icon; }
|
||||
set { icon = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 菜单名称
|
||||
/// </summary>
|
||||
public string Name
|
||||
{
|
||||
get { return name; }
|
||||
set { name = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 菜单导航的页面
|
||||
/// </summary>
|
||||
public string PageName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航菜单列表
|
||||
/// 菜单子项
|
||||
/// </summary>
|
||||
public ObservableCollection<NavigationItem> Items
|
||||
{
|
||||
get { return items; }
|
||||
set { items = value; RaisePropertyChanged(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user