* UIPanel:修改大小变化时重绘
This commit is contained in:
parent
f2b0bccc2e
commit
46f54abce3
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
@ -51,7 +51,13 @@ namespace Sunny.UI
|
||||
Version = UIGlobal.Version;
|
||||
base.Font = UIFontColor.Font;
|
||||
Size = new Size(100, 35);
|
||||
base.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
base.MinimumSize = new Size(1, 1);
|
||||
}
|
||||
|
||||
protected override void OnSizeChanged(EventArgs e)
|
||||
{
|
||||
base.OnSizeChanged(e);
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -272,7 +278,7 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
|
||||
private bool useDoubleClick = false;
|
||||
private bool useDoubleClick;
|
||||
|
||||
[Description("是否启用双击事件"), Category("SunnyUI")]
|
||||
[DefaultValue(false)]
|
||||
|
@ -60,6 +60,12 @@ namespace Sunny.UI
|
||||
base.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
}
|
||||
|
||||
protected override void OnSizeChanged(EventArgs e)
|
||||
{
|
||||
base.OnSizeChanged(e);
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tag字符串
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user