Update IconButton.axaml

修正 IconButton 在设置 IsLoading 后,CPU 占用异常的问题。
This commit is contained in:
Soar360
2025-03-19 22:51:21 +08:00
committed by GitHub
parent fac49a660e
commit 1e27b3a0c1

View File

@@ -72,6 +72,7 @@
<u:LoadingIcon
Classes="Small"
Foreground="{TemplateBinding Foreground}"
IsLoading="{TemplateBinding IsLoading}"
IsVisible="{TemplateBinding IsLoading}" />
</Panel>
<ContentPresenter
@@ -304,4 +305,4 @@
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultDisabledForeground}" />
</Style>
</ControlTheme>
</ResourceDictionary>
</ResourceDictionary>