52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
|
|
|
|||
|
|
using Prism.Mvvm;
|
|||
|
|
using System.Collections.ObjectModel;
|
|||
|
|
|
|||
|
|
namespace InSituLaboratory.Models
|
|||
|
|
{
|
|||
|
|
public class MenuItemModel : BindableBase
|
|||
|
|
{
|
|||
|
|
public int MenuId { get; set; }
|
|||
|
|
|
|||
|
|
public string MenuIcon { get; set; }
|
|||
|
|
public string MenuHeader { get; set; }
|
|||
|
|
public string TargetView { get; set; }// ˫<><CBAB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>
|
|||
|
|
|
|||
|
|
public int? ParentId { get; set; }
|
|||
|
|
public bool IsLastChild { get; set; }
|
|||
|
|
|
|||
|
|
private int? _menuType;
|
|||
|
|
|
|||
|
|
public int? MenuType
|
|||
|
|
{
|
|||
|
|
get { return _menuType; }
|
|||
|
|
set { SetProperty<int?>(ref _menuType, value); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private bool _isExpanded;
|
|||
|
|
// <20>Ƿ<EFBFBD>չ<EFBFBD><D5B9><EFBFBD>ڵ<EFBFBD>
|
|||
|
|
public bool IsExpanded
|
|||
|
|
{
|
|||
|
|
get { return _isExpanded; }
|
|||
|
|
set { SetProperty(ref _isExpanded, value); }
|
|||
|
|
}
|
|||
|
|
// <20>ӽڵ<D3BD>
|
|||
|
|
public ObservableCollection<MenuItemModel> Children { get; set; } = new ObservableCollection<MenuItemModel>();
|
|||
|
|
public MenuItemModel Parent { get; set; }
|
|||
|
|
|
|||
|
|
private bool _isSelected;
|
|||
|
|
|
|||
|
|
public bool IsSelected
|
|||
|
|
{
|
|||
|
|
get { return _isSelected; }
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
SetProperty<bool>(ref _isSelected, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|