Added the source code of Aga.Controls (TreeViewAdv for .Net) version 1.7.0.0.
2 using System.Collections.Generic;
5 using Aga.Controls.Properties;
7 namespace Aga.Controls.Tree.NodeControls
9 public class NodeStateIcon: NodeIcon
12 private Image _opened;
13 private Image _closed;
15 public NodeStateIcon()
17 _leaf = MakeTransparent(Resources.Leaf);
18 _opened = MakeTransparent(Resources.Folder);
19 _closed = MakeTransparent(Resources.FolderClosed);
22 private static Image MakeTransparent(Bitmap bitmap)
24 bitmap.MakeTransparent(bitmap.GetPixel(0,0));
28 protected override Image GetIcon(TreeNodeAdv node)
30 Image icon = base.GetIcon(node);
35 else if (node.CanExpand && node.IsExpanded)