* UIHeaderButton:增加选中事件

This commit is contained in:
Sunny 2021-02-27 15:29:59 +08:00
parent 51bff0cb83
commit 0394d0e6f4
5 changed files with 3 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -82,6 +82,8 @@ namespace Sunny.UI
base.OnClick(e);
}
public event EventHandler SelectedChanged;
private int _symbolSize = 48;
[DefaultValue(48)]
@ -326,6 +328,7 @@ namespace Sunny.UI
if (selected != value)
{
selected = value;
SelectedChanged?.Invoke(this, new EventArgs());
Invalidate();
}
}