* UIHeaderButton:增加选中事件
This commit is contained in:
parent
51bff0cb83
commit
0394d0e6f4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user