UIComboTreeView:添加CanSelectRootNode 与 CheckBoxes 互斥

This commit is contained in:
木-易-杨 2021-01-02 14:48:25 +08:00
parent 47357b88db
commit b2ad963085

View File

@ -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