* UIFlowLayoutPanel: 增加了几个原生方法
This commit is contained in:
parent
1b85ff03ff
commit
76e13855df
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -24,6 +24,7 @@ using System.ComponentModel;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.Windows.Forms.Layout;
|
||||||
|
|
||||||
namespace Sunny.UI
|
namespace Sunny.UI
|
||||||
{
|
{
|
||||||
@ -64,6 +65,40 @@ namespace Sunny.UI
|
|||||||
timer.Stop();
|
timer.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override LayoutEngine LayoutEngine
|
||||||
|
{
|
||||||
|
get { return Panel.LayoutEngine; }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DefaultValue(System.Windows.Forms.FlowDirection.LeftToRight)]
|
||||||
|
[Localizable(true)]
|
||||||
|
public FlowDirection FlowDirection
|
||||||
|
{
|
||||||
|
get => Panel.FlowDirection;
|
||||||
|
set => Panel.FlowDirection = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
[DefaultValue(true)]
|
||||||
|
[Localizable(true)]
|
||||||
|
public bool WrapContents
|
||||||
|
{
|
||||||
|
get => Panel.WrapContents;
|
||||||
|
set => Panel.WrapContents = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
[DefaultValue(false)]
|
||||||
|
[DisplayName("FlowBreak")]
|
||||||
|
public bool GetFlowBreak(Control control)
|
||||||
|
{
|
||||||
|
return Panel.GetFlowBreak(control);
|
||||||
|
}
|
||||||
|
|
||||||
|
[DisplayName("FlowBreak")]
|
||||||
|
public void SetFlowBreak(Control control, bool value)
|
||||||
|
{
|
||||||
|
Panel.SetFlowBreak(control, value);
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnControlAdded(ControlEventArgs e)
|
protected override void OnControlAdded(ControlEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Control is UIHorScrollBarEx bar1)
|
if (e.Control is UIHorScrollBarEx bar1)
|
||||||
@ -183,21 +218,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
[DefaultValue(FlowDirection.LeftToRight)]
|
|
||||||
[Localizable(true)]
|
|
||||||
public FlowDirection FlowDirection
|
|
||||||
{
|
|
||||||
get => Panel.FlowDirection;
|
|
||||||
set => Panel.FlowDirection = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DefaultValue(true)]
|
|
||||||
[Localizable(true)]
|
|
||||||
public bool WrapContents
|
|
||||||
{
|
|
||||||
get => Panel.WrapContents;
|
|
||||||
set => Panel.WrapContents = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SetStyleColor(UIBaseStyle uiColor)
|
public override void SetStyleColor(UIBaseStyle uiColor)
|
||||||
{
|
{
|
||||||
@ -331,7 +352,6 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
SetScrollPos();
|
SetScrollPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FlowLayoutPanel Panel => flowLayoutPanel;
|
public FlowLayoutPanel Panel => flowLayoutPanel;
|
||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user