Demo.WindowsForms/BSE.Windows.Forms/XPander/PanelColorsBse.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace BSE.Windows.Forms
{
/// <summary>
/// Baseclass for a bse styled colortable.
/// </summary>
/// <copyright>Copyright © 2008 Uwe Eichkorn
/// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
/// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
/// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
/// PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER
/// REMAINS UNCHANGED.
/// </copyright>
public class PanelColorsBse : PanelColors
{
#region Properties
/// <summary>
/// Gets the associated PanelStyle for the XPanderControls
/// </summary>
public override PanelStyle PanelStyle
{
get { return PanelStyle.Office2007; }
}
#endregion
#region MethodsPublic
/// <summary>
/// Initialize a new instance of the PanelColorsBse class.
/// </summary>
public PanelColorsBse()
: base()
{
}
/// <summary>
/// Initialize a new instance of the PanelColorsBse class.
/// </summary>
/// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
public PanelColorsBse(BasePanel basePanel)
: base(basePanel)
{
}
#endregion
#region MethodsProtected
/// <summary>
/// Initialize a color Dictionary with defined Bse colors
/// </summary>
/// <param name="rgbTable">Dictionary with defined colors</param>
protected override void InitColors(Dictionary<KnownColors, System.Drawing.Color> rgbTable)
{
base.InitColors(rgbTable);
rgbTable[KnownColors.PanelCaptionSelectedGradientBegin] = Color.FromArgb(156, 163, 254);
rgbTable[KnownColors.PanelCaptionSelectedGradientEnd] = Color.FromArgb(90, 98, 254);
rgbTable[KnownColors.XPanderPanelCheckedCaptionBegin] = Color.FromArgb(136, 144, 254);
rgbTable[KnownColors.XPanderPanelCheckedCaptionEnd] = Color.FromArgb(111, 145, 255);
rgbTable[KnownColors.XPanderPanelCheckedCaptionMiddle] = Color.FromArgb(42, 52, 254);
后面还有 11 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
