Demo.WindowsForms/BSE.Windows.Forms/XPander/CustomPanelColors.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace BSE.Windows.Forms
{
/// <summary>
/// Class for the custom colors at a Panel 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 CustomPanelColors : CustomColors
{
#region FieldsPrivate
private Color m_captionSelectedGradientBegin = System.Windows.Forms.ProfessionalColors.ButtonSelectedGradientBegin;
private Color m_captionSelectedGradientEnd = System.Windows.Forms.ProfessionalColors.ButtonSelectedGradientEnd;
private Color m_collapsedCaptionText = SystemColors.ControlText;
private Color m_contentGradientBegin = System.Windows.Forms.ProfessionalColors.ToolStripContentPanelGradientBegin;
private Color m_contentGradientEnd = System.Windows.Forms.ProfessionalColors.ToolStripContentPanelGradientEnd;
#endregion
#region Properties
/// <summary>
/// Gets or sets the starting color of the gradient used when the hover icon in the captionbar on the Panel is selected.
/// </summary>
[Description("The starting color of the hover icon in the captionbar on the Panel.")]
public virtual Color CaptionSelectedGradientBegin
{
get { return this.m_captionSelectedGradientBegin; }
set
{
if (value.Equals(this.m_captionSelectedGradientBegin) == false)
{
this.m_captionSelectedGradientBegin = value;
OnCustomColorsChanged(this, EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets the end color of the gradient used when the hover icon in the captionbar on the Panel is selected.
/// </summary>
[Description("The end color of the hover icon in the captionbar on the Panel.")]
public virtual Color CaptionSelectedGradientEnd
{
get { return this.m_captionSelectedGradientEnd; }
set
{
if (value.Equals(this.m_captionSelectedGradientEnd) == false)
{
this.m_captionSelectedGradientEnd = value;
OnCustomColorsChanged(this, EventArgs.Empty);
}
}
后面还有 52 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
