Source/Ribbon/GalleryContainer.cs
(开头部分) 63KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using DevComponents.UI.ContentManager;
using System.Collections;
using System.Drawing.Drawing2D;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the class that provides Office 2007 style Gallery container with drop-down ability.
/// </summary>
[ToolboxItem(false), DesignTimeVisible(false), ProvideProperty("GalleryGroup", typeof(BaseItem)), Designer(typeof(Design.GalleryContainerDesigner))]
public class GalleryContainer : ItemContainer, IExtenderProvider
{
#region Private Variables
private bool m_EnableGalleryPopup = true;
private ButtonItem m_ScrollUp = null;
private ButtonItem m_ScrollDown = null;
private ButtonItem m_PopupGallery = null;
private Size m_ScrollButtonSize = new Size(15, 20);
private int m_ScrollButtonContentSpacing = 1;
private Size m_DefaultSize = Size.Empty;
private Point m_ScrollPosition = Point.Empty;
private Size m_PopupGallerySize = Size.Empty;
private ScrollBar.ScrollBarCore m_ScrollBar = null;
private bool m_PopupGalleryStyle = false;
private Rectangle m_ViewRectangle = Rectangle.Empty;
private Size m_RecommendedSize = Size.Empty;
private bool m_StretchGallery = false;
internal bool SystemGallery = false;
private bool m_IncrementalSizing = true;
private GalleryGroupCollection m_Groups = null;
private bool m_ScrollAnimation = true;
private ThreadUIOperation m_ThreadUI = null;
private bool m_PopupUsesStandardScrollbars = true;
#endregion
#region Events
/// <summary>
/// Occurs when Gallery popup item is about to open.
/// </summary>
[System.ComponentModel.Description("Occurs when Gallery popup item is about to open.")]
public event DotNetBarManager.PopupOpenEventHandler GalleryPopupOpen;
/// <summary>
/// Occurs just before Gallery popup window is shown.
/// </summary>
[System.ComponentModel.Description("Occurs just before Gallery popup window is shown.")]
public event EventHandler GalleryPopupShowing;
/// <summary>
/// Occurs before the Gallery popup item is closed.
/// </summary>
[System.ComponentModel.Description("Occurs before the Gallery popup item is closed")]
public event EventHandler GalleryPopupClose;
/// <summary>
/// Occurs after Gallery popup item has been closed.
后面还有 1561 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。