Source/Design/NavigationPanePanelDesigner.cs
(完整代码) 914Busing System;
using System.Windows.Forms.Design;
using System.Collections;
namespace DevComponents.DotNetBar.Design
{
/// <summary>
/// Designer for Navigation Pane Panel.
/// </summary>
public class NavigationPanePanelDesigner:PanelExDesigner
{
public override SelectionRules SelectionRules
{
get{return (SelectionRules.Locked | SelectionRules.Visible);}
}
#if FRAMEWORK20
public override void InitializeNewComponent(IDictionary defaultValues)
{
base.InitializeNewComponent(defaultValues);
SetDesignTimeDefaults();
}
#else
public override void OnSetComponentDefaults()
{
base.OnSetComponentDefaults();
SetDesignTimeDefaults();
}
#endif
private void SetDesignTimeDefaults()
{
PanelEx p = this.Control as PanelEx;
if (p == null)
return;
p.ApplyLabelStyle();
p.Text = "";
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。