* UISymbolButton: 设置完图片即可更新
This commit is contained in:
parent
56221eef7d
commit
9989447771
Binary file not shown.
Binary file not shown.
@ -344,8 +344,11 @@ namespace Sunny.UI
|
||||
get => image;
|
||||
set
|
||||
{
|
||||
image = value;
|
||||
Invalidate();
|
||||
if (image != value)
|
||||
{
|
||||
image = value;
|
||||
Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,11 +150,21 @@ namespace Sunny.UI
|
||||
base.SetStyleColor(uiColor);
|
||||
}
|
||||
|
||||
private Image image;
|
||||
|
||||
[DefaultValue(null)]
|
||||
[Description("图片"), Category("SunnyUI")]
|
||||
public Image Image
|
||||
{
|
||||
get; set;
|
||||
get => image;
|
||||
set
|
||||
{
|
||||
if (image != value)
|
||||
{
|
||||
image = value;
|
||||
Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ContentAlignment imageAlign = ContentAlignment.MiddleCenter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user