namespace DevComponents.AdvTree.Display { /// /// Represents expand button display using predefined images. /// public class NodeExpandImageDisplay:NodeExpandDisplay { /// /// Draws image type expand button. /// /// Expand context information public override void DrawExpandButton(NodeExpandPartRendererEventArgs e) { if(e.Node.Expanded) { if(e.ExpandImageCollapse!=null) e.Graphics.DrawImage(e.ExpandImageCollapse,e.ExpandPartBounds); } else if(e.ExpandImage!=null) e.Graphics.DrawImage(e.ExpandImage,e.ExpandPartBounds); } } }