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,34 @@
using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.Rendering
{
internal class Office2007NavigationPanePainter : NavigationPanePainter, IOffice2007Painter
{
#region IOffice2007Painter
private Office2007ColorTable m_ColorTable = null;
/// <summary>
/// Gets or sets color table used by renderer.
/// </summary>
public Office2007ColorTable ColorTable
{
get { return m_ColorTable; }
set { m_ColorTable = value; }
}
#endregion
public override void PaintButtonBackground(NavPaneRenderEventArgs e)
{
Graphics g = e.Graphics;
Rectangle r = e.Bounds;
Office2007NavigationPaneColorTable ct = m_ColorTable.NavigationPane;
using (Brush brush = DisplayHelp.CreateBrush(r, ct.ButtonBackground))
{
g.FillRectangle(brush, r);
}
}
}
}