Source/PopupItem.cs
(开头部分) 55KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace DevComponents.DotNetBar
{
using System;
using System.Drawing;
using System.ComponentModel;
using DevComponents.DotNetBar.Rendering;
/// <summary>
/// PopupItem Class can pop-up it's subitems on either the popup Bar
/// or menu.
/// </summary>
[System.ComponentModel.ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false)]
public abstract class PopupItem:ImageItem,IDesignTimeProvider
{
#region Events
/// <summary>
/// Occurs when popup container is loading. Use this event to assign control to the popup container. If you want to use same control
/// that you added to the popup container after popup is closed you must handle the PopupContainerUnload event and remove the control
/// from the popup container so it is not disposed with the container.
/// </summary>
public event EventHandler PopupContainerLoad;
/// <summary>
/// Occurs when popup container is unloading. Use this event to save any state associated with the control that was contained by the container or
/// to remove the control from the container so it is not disposed with container.
/// </summary>
public event EventHandler PopupContainerUnload;
/// <summary>
/// Occurs when popup item is about to open.
/// </summary>
[System.ComponentModel.Description("Occurs when popup item is about to open.")]
public event DotNetBarManager.PopupOpenEventHandler PopupOpen;
/// <summary>
/// Occurs while popup item is closing.
/// </summary>
[System.ComponentModel.Description("Occurs when popup item is closing.")]
public event EventHandler PopupClose;
/// <summary>
/// Occurs after popup item has been closed.
/// </summary>
[System.ComponentModel.Description("Occurs after popup item has been closed.")]
public event EventHandler PopupFinalized;
/// <summary>
/// Occurs just before popup window is shown.
/// </summary>
[System.ComponentModel.Description("Occurs just before popup window is shown.")]
public event EventHandler PopupShowing;
#endregion
private MenuPanel m_PopupMenu;
private Bar m_PopupBar;
private PopupContainerControl m_PopupContainer=null;
private bool m_FilterInstalled;
protected SideBarImage m_SideBar;
private ePopupType m_PopupType;
private bool m_WasParentFocused;
private Size m_OldSubItemsImageSize; // For menus we need minimum sub items image size of 16x16 default is 12x12
private int m_PopupWidth=200;
后面还有 1646 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。