DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -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);
}
}
}