mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-17 05:31:01 +08:00
Fix button theme setup bug
This commit is contained in:
@@ -379,17 +379,20 @@ public class Button : AvaloniaButton,
|
||||
{
|
||||
SetupShadows();
|
||||
}
|
||||
else if (e.Property == ButtonTypeProperty)
|
||||
{
|
||||
SetupControlThemeBindings();
|
||||
}
|
||||
else if (e.Property == IsMotionEnabledProperty ||
|
||||
e.Property == IsWaveSpiritEnabledProperty)
|
||||
{
|
||||
ConfigureTransitions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (this.IsAttachedToLogicalTree())
|
||||
{
|
||||
if (e.Property == ButtonTypeProperty)
|
||||
{
|
||||
SetupControlThemeBindings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SetupControlThemeBindings()
|
||||
|
||||
Reference in New Issue
Block a user