+ UINaveMenu:增加ShowOneNode,同一层只显示一个打开的节点
This commit is contained in:
parent
d243052659
commit
21aea8480a
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
2
SunnyUI.Demo/FMain.Designer.cs
generated
2
SunnyUI.Demo/FMain.Designer.cs
generated
@ -44,6 +44,7 @@
|
||||
//
|
||||
this.Aside.ItemHeight = 36;
|
||||
this.Aside.LineColor = System.Drawing.Color.Black;
|
||||
this.Aside.ShowOneNode = true;
|
||||
this.Aside.Size = new System.Drawing.Size(250, 575);
|
||||
//
|
||||
// Header
|
||||
@ -76,6 +77,7 @@
|
||||
this.uiLogo1.MinimumSize = new System.Drawing.Size(300, 80);
|
||||
this.uiLogo1.Name = "uiLogo1";
|
||||
this.uiLogo1.Size = new System.Drawing.Size(300, 80);
|
||||
this.uiLogo1.Style = Sunny.UI.UIStyle.Custom;
|
||||
this.uiLogo1.TabIndex = 3;
|
||||
this.uiLogo1.Text = "uiLogo1";
|
||||
//
|
||||
|
@ -47,7 +47,7 @@ namespace Sunny.UI.Demo
|
||||
pageIndex = 3000;
|
||||
Header.SetNodePageIndex(Header.Nodes[2], pageIndex);
|
||||
Header.SetNodeSymbol(Header.Nodes[2], 61950);
|
||||
parent = Aside.CreateNode("Forms", 61950, 24, pageIndex);
|
||||
parent = Aside.CreateNode("Charts", 61950, 24, pageIndex);
|
||||
//直接关联(默认自动生成GUID)
|
||||
Aside.CreateChildNode(parent, 61952, 24, AddPage(new FPieChart()));
|
||||
|
||||
|
@ -70,6 +70,9 @@ namespace Sunny.UI
|
||||
SetScrollInfo();
|
||||
}
|
||||
|
||||
[DefaultValue(false)]
|
||||
public bool ShowOneNode { get; set; }
|
||||
|
||||
[DefaultValue(null)]
|
||||
public string TagString { get; set; }
|
||||
|
||||
@ -597,6 +600,23 @@ namespace Sunny.UI
|
||||
{
|
||||
base.OnAfterSelect(e);
|
||||
|
||||
if (ShowOneNode)
|
||||
{
|
||||
TreeNode node = e.Node.PrevNode;
|
||||
while (node != null)
|
||||
{
|
||||
node.Collapse();
|
||||
node = node.PrevNode;
|
||||
}
|
||||
|
||||
node = e.Node.NextNode;
|
||||
while (node != null)
|
||||
{
|
||||
node.Collapse();
|
||||
node = node.NextNode;
|
||||
}
|
||||
}
|
||||
|
||||
if (e.Node != null && ExpandSelectFirst && e.Node.Nodes.Count > 0)
|
||||
{
|
||||
e.Node.Expand();
|
||||
|
@ -1,6 +1,9 @@
|
||||
+ 增加; - 删除; * 修改
|
||||
|
||||
2020.06.08
|
||||
2020.06.10
|
||||
+ UINaveMenu:增加ShowOneNode,同一层只显示一个打开的节点
|
||||
|
||||
2020.06.09
|
||||
* 页面框架支持通过PageIndex和PageGuid关联
|
||||
|
||||
2020.06.08
|
||||
|
Loading…
x
Reference in New Issue
Block a user