UIComboTreeView:添加CanSelectRootNode 与 CheckBoxes 互斥
This commit is contained in:
parent
47357b88db
commit
b2ad963085
@ -52,9 +52,11 @@ namespace Sunny.UI
|
||||
get => item.CheckBoxes;
|
||||
set { item.CheckBoxes = value;
|
||||
if (value)
|
||||
{
|
||||
CanSelectRootNode = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DefaultValue(false), Description("单选时是否可选择父节点,该属性与CheckBoxes互斥"), Category("SunnyUI")]
|
||||
public bool CanSelectRootNode {
|
||||
@ -62,9 +64,11 @@ namespace Sunny.UI
|
||||
set {
|
||||
item.CanSelectRootNode = value;
|
||||
if (value)
|
||||
{
|
||||
CheckBoxes = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DefaultValue(false), Description("是否显示连线"), Category("SunnyUI")]
|
||||
public bool ShowLines
|
||||
|
Loading…
x
Reference in New Issue
Block a user