Remove AnimationTargetPanel

This commit is contained in:
polarboy 2024-09-29 21:48:31 +08:00
parent 8a2092cc0f
commit 2aa53e218f

View File

@ -1,22 +0,0 @@
using Avalonia;
using Avalonia.Controls;
namespace AtomUI.MotionScene;
internal class AnimationTargetPanel : Panel
{
public bool InAnimation { get; set; }
private Size _cacheMeasureSize;
protected override Size MeasureOverride(Size availableSize)
{
if (InAnimation && _cacheMeasureSize != default)
{
return _cacheMeasureSize;
}
_cacheMeasureSize = base.MeasureOverride(availableSize);
return _cacheMeasureSize;
}
}