Source/Design/ItemPanelDesigner.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
namespace DevComponents.DotNetBar.Design
{
/// <summary>
/// Represents Windows Forms Designer for the ItemPanel control.
/// </summary>
public class ItemPanelDesigner : BarBaseControlDesigner
{
public ItemPanelDesigner()
{
this.EnableItemDragDrop=true;
}
public override void Initialize(IComponent component)
{
base.Initialize(component);
if (component == null || component.Site == null || !component.Site.DesignMode)
return;
#if !TRIAL
IDesignerHost dh = this.GetService(typeof(IDesignerHost)) as IDesignerHost;
if (dh != null)
dh.LoadComplete += new EventHandler(dh_LoadComplete);
#endif
}
#if FRAMEWORK20
public override void InitializeNewComponent(IDictionary defaultValues)
{
base.InitializeNewComponent(defaultValues);
SetDesignTimeDefaults();
}
#else
public override void OnSetComponentDefaults()
{
SetDesignTimeDefaults();
base.OnSetComponentDefaults();
}
#endif
private void SetDesignTimeDefaults()
{
ItemPanel panel = this.Control as ItemPanel;
panel.LayoutOrientation = eOrientation.Vertical;
panel.BackgroundStyle.Border = eStyleBorderType.Solid;
panel.BackgroundStyle.BorderColor = ColorScheme.GetColor("7F9DB9");
panel.BackgroundStyle.BorderWidth = 1;
panel.BackgroundStyle.PaddingLeft = 1;
panel.BackgroundStyle.PaddingRight = 1;
panel.BackgroundStyle.PaddingTop = 1;
panel.BackgroundStyle.PaddingBottom = 1;
panel.BackgroundStyle.BackColor = Color.White;
#if !TRIAL
string key = GetLicenseKey();
后面还有 129 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。