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 { /// /// 导航项数据模型 /// public class NavItemDto : BindableBase { private string? _Name; /// /// 名称 /// public string? Name { get { return _Name; } set { _Name = value; RaisePropertyChanged(); } } private string? _CmdPar; /// /// 命令参数 /// public string? CmdPar { get { return _CmdPar; } set { _CmdPar = value; RaisePropertyChanged(); } } private object? _Icon; /// /// 图标 /// public object? Icon { get { return _Icon; } set { _Icon = value; RaisePropertyChanged(); } } //private bool _IsExpanded; ///// ///// 是否为父级节点 ///// //public bool IsExpanded //{ // get { return _IsExpanded; } // set { _IsExpanded = value; RaisePropertyChanged(); } //} private bool _IsParent; /// /// 是否为父级节点 /// public bool IsParent { get { return _IsParent; } set { _IsParent = value; RaisePropertyChanged(); } } /// /// 子导航项集合 /// public ObservableCollection ChildrenNavItemDtos { get; set; } } }