* UITreeView: 增加LabelEdit属性

This commit is contained in:
Sunny 2021-09-05 17:37:31 +08:00
parent c01b187bad
commit 766b1e6513
6 changed files with 7 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -87,6 +87,13 @@ namespace Sunny.UI
public new event KeyEventHandler KeyDown;
public new event KeyEventHandler KeyUp;
[DefaultValue(false)]
public bool LabelEdit
{
get => view.LabelEdit;
set => view.LabelEdit = true;
}
private void View_KeyUp(object sender, KeyEventArgs e)
{
KeyUp?.Invoke(this, e);