Demo.WindowsForms/BSE.Windows.Forms/XPander/BasePanel.cs

(开头部分) 66KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.ComponentModel;
using Demo.WindowsForms.Properties;

namespace BSE.Windows.Forms
{
   /// <summary>
   /// Base class for the panel or xpanderpanel control. 
   /// </summary>
   /// <copyright>Copyright ?2006-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>
   [DesignTimeVisibleAttribute(false)]
   public class BasePanel : ScrollableControl, IPanel
   {
      #region Constants

      /// <summary>
      /// padding value for the panel
      /// </summary>
      public const int CaptionSpacing = 6;

      #endregion

      #region Events
      /// <summary>
      /// Occurs when the close icon in the caption of the panel or xpanderpanel is clicked. 
      /// </summary>
      [Description("Occurs when the close icon in the caption of the panel or xpanderpanel is clicked.")]
      public event EventHandler<EventArgs> CloseClick;
      /// <summary>
      /// Occurs when the expand icon in the caption of the panel or xpanderpanel is clicked. 
      /// </summary>
      [Description("Occurs when the expand icon in the caption of the panel or xpanderpanel is clicked.")]
      public event EventHandler<EventArgs> ExpandClick;
      /// <summary>
      /// Occurs when the panel or xpanderpanel expands.
      /// </summary>
      [Description("Occurs when the panel or xpanderpanel expands.")]
      public event EventHandler<XPanderStateChangeEventArgs> PanelExpanding;
      /// <summary>
      /// Occurs when the panel or xpanderpanel collapse.
      /// </summary>
      [Description("Occurs when the panel or xpanderpanel collapse.")]
      public event EventHandler<XPanderStateChangeEventArgs> PanelCollapsing;
      /// <summary>
      /// The PanelStyleChanged event occurs when PanelStyle flags have been changed.
      /// </summary>
      [Description("The PanelStyleChanged event occurs when PanelStyle flags have been changed.")]
      public event EventHandler<PanelStyleChangeEventArgs> PanelStyleChanged;
      /// <summary>
      /// The ColorSchemeChanged event occurs when ColorScheme flags have been changed.
后面还有 1605 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。