using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace Kingo.Plugin.MapView.Model { public class TreeNode { #region Property private string _Text; /// /// 显示的文本值 /// public string Name { get { return this._Text; } set { this._Text = value; } } private ContextMenu _cMenu; public ContextMenu cMenu { get { return this._cMenu; } set { this._cMenu = value; } } private bool? _Checked; /// /// 是否选中 /// public bool? Checked { get { return this._Checked; } set { this._Checked = value; } } private bool _IsExpanded; /// /// 是否展开 /// public bool IsExpanded { get { return this._IsExpanded; } set { this._IsExpanded = value; } } /// /// 节点图标:相对路径 /// public string Icon { get; set; } /// /// 子节点,默认null /// public IList Nodes { get; set; } /// /// 该节点数据项,默认null /// public virtual object Data { get; set; } public virtual bool IsOpenEdit { get; set; } #endregion #region NodeX-构造函数(初始化) /// /// NodeX-构造函数(初始化) /// public TreeNode() { this.Name = string.Empty; this.Icon = string.Empty; this.Checked = false; } #endregion } }