mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-28 23:08:36 +08:00
Fix Calendar motion
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user