Files
FATrace/FATrace.WPLApp/ModelDto/NavItemDto.cs
2025-10-29 11:42:58 +08:00

73 lines
1.7 KiB
C#

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; }
}
}