Fix Calendar motion

This commit is contained in:
chinboy
2025-06-20 18:09:37 +08:00
parent 4b66e1cd88
commit 54092e1c4a
2 changed files with 3 additions and 5 deletions
@@ -315,12 +315,9 @@ internal sealed class CalendarDayButton : AvaloniaButton,
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
{
base.OnPropertyChanged(change);
if (this.IsAttachedToVisualTree())
if (change.Property == IsMotionEnabledProperty)
{
if (change.Property == IsMotionEnabledProperty)
{
ConfigureTransitions();
}
ConfigureTransitions();
}
}
}
@@ -26,6 +26,7 @@ internal class StringToTextBlockConverter : IValueConverter
HorizontalAlignment = HorizontalAlignment,
Height = Height,
Width = Width,
TextWrapping = TextWrapping,
LineHeight = LineHeight,
};
}