using DevExpress.Xpf.Grid.TreeList;
using DevExpress.Xpf.Grid;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Package.Domain;
using System.Windows.Media;

namespace VIZ.Package.Common
{
    /// <summary>
    /// 默认树节点图片选择器
    /// </summary>
    public class DefaultTreeListNodeImageSelector : TreeListNodeImageSelector
    {
        /// <summary>
        /// 图标
        /// </summary>
        public ImageSource Icon { get; set; }

        /// <summary>
        /// 选择图标
        /// </summary>
        /// <param name="rowData">行数据</param>
        /// <returns>图标</returns>
        public override ImageSource Select(TreeListRowData rowData)
        {
            return Icon;
        }
    }
}
