DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
namespace DevComponents.AdvTree.Display
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents expand button display using predefined images.
|
||||
/// </summary>
|
||||
public class NodeExpandImageDisplay:NodeExpandDisplay
|
||||
{
|
||||
/// <summary>
|
||||
/// Draws image type expand button.
|
||||
/// </summary>
|
||||
/// <param name="e">Expand context information</param>
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user