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