Source/CrumbBar/CrumbBarItem.cs
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents an item for CrumbBar control.
/// </summary>
[Designer(typeof(Design.CrumbBarItemDesigner)), ToolboxItem(false), DesignTimeVisible(false)]
public class CrumbBarItem : ButtonItem
{
#region Internal Implementation
protected override void OnClick()
{
Select(eEventSource.Mouse);
base.OnClick();
}
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override bool ShowSubItems
{
get
{
return false;
}
set
{
base.ShowSubItems = value;
}
}
private bool _IsSelected = false;
/// <summary>
/// Gets whether item is selected item in CrumbBar control.
/// </summary>
[Browsable(false)]
public bool IsSelected
{
get { return _IsSelected; }
#if FRAMEWORK20
internal set
#else
set
#endif
{
_IsSelected = value;
if (_IsSelected)
this.FontBold = true;
else
this.FontBold = false;
}
}
private void Select(eEventSource source)
{
CrumbBar bar = this.GetOwner() as CrumbBar;
if (bar != null) bar.SetSelectedItem(this, source);
}
后面还有 660 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。