251029
This commit is contained in:
72
FATrace.WPLApp/ModelDto/NavItemDto.cs
Normal file
72
FATrace.WPLApp/ModelDto/NavItemDto.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FATrace.WPLApp.ModelDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航项数据模型
|
||||
/// </summary>
|
||||
public class NavItemDto : BindableBase
|
||||
{
|
||||
private string? _Name;
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string? Name
|
||||
{
|
||||
get { return _Name; }
|
||||
set { _Name = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private string? _CmdPar;
|
||||
/// <summary>
|
||||
/// 命令参数
|
||||
/// </summary>
|
||||
public string? CmdPar
|
||||
{
|
||||
get { return _CmdPar; }
|
||||
set { _CmdPar = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private object? _Icon;
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public object? Icon
|
||||
{
|
||||
get { return _Icon; }
|
||||
set { _Icon = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
|
||||
//private bool _IsExpanded;
|
||||
///// <summary>
|
||||
///// 是否为父级节点
|
||||
///// </summary>
|
||||
//public bool IsExpanded
|
||||
//{
|
||||
// get { return _IsExpanded; }
|
||||
// set { _IsExpanded = value; RaisePropertyChanged(); }
|
||||
//}
|
||||
|
||||
private bool _IsParent;
|
||||
/// <summary>
|
||||
/// 是否为父级节点
|
||||
/// </summary>
|
||||
public bool IsParent
|
||||
{
|
||||
get { return _IsParent; }
|
||||
set { _IsParent = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 子导航项集合
|
||||
/// </summary>
|
||||
public ObservableCollection<NavItemDto> ChildrenNavItemDtos { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user