Demo.WindowsForms/BSE.Windows.Forms/XPander/CustomXPanderPanelColors.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Drawing;
namespace BSE.Windows.Forms
{
/// <summary>
/// Class for the custom colors at a XPanderPanel control.
/// </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 CustomXPanderPanelColors : CustomColors
{
#region FieldsPrivate
private Color m_backColor = SystemColors.Control;
private Color m_flatCaptionGradientBegin = System.Windows.Forms.ProfessionalColors.ToolStripGradientMiddle;
private Color m_flatCaptionGradientEnd = System.Windows.Forms.ProfessionalColors.ToolStripGradientBegin;
private Color m_captionPressedGradientBegin = System.Windows.Forms.ProfessionalColors.ButtonPressedGradientBegin;
private Color m_captionPressedGradientEnd = System.Windows.Forms.ProfessionalColors.ButtonPressedGradientEnd;
private Color m_captionPressedGradientMiddle = System.Windows.Forms.ProfessionalColors.ButtonPressedGradientMiddle;
private Color m_captionCheckedGradientBegin = System.Windows.Forms.ProfessionalColors.ButtonCheckedGradientBegin;
private Color m_captionCheckedGradientEnd = System.Windows.Forms.ProfessionalColors.ButtonCheckedGradientEnd;
private Color m_captionCheckedGradientMiddle = System.Windows.Forms.ProfessionalColors.ButtonCheckedGradientMiddle;
private Color m_captionSelectedGradientBegin = System.Windows.Forms.ProfessionalColors.ButtonSelectedGradientBegin;
private Color m_captionSelectedGradientEnd = System.Windows.Forms.ProfessionalColors.ButtonSelectedGradientEnd;
private Color m_captionSelectedGradientMiddle = System.Windows.Forms.ProfessionalColors.ButtonSelectedGradientMiddle;
private Color m_captionSelectedText = SystemColors.ControlText;
#endregion
#region Properties
/// <summary>
/// Gets or sets the backcolor of a XPanderPanel.
/// </summary>
[Description("The backcolor of a XPanderPanel.")]
public virtual Color BackColor
{
get { return this.m_backColor; }
set
{
if (value.Equals(this.m_backColor) == false)
{
this.m_backColor = value;
OnCustomColorsChanged(this, EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets the starting color of the gradient on a flat XPanderPanel captionbar.
/// </summary>
[Description("The starting color of the gradient on a flat XPanderPanel captionbar.")]
public virtual Color FlatCaptionGradientBegin
{
get { return this.m_flatCaptionGradientBegin; }
后面还有 188 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
