mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-02 03:47:52 +08:00
Remove AnimationTargetPanel
This commit is contained in:
parent
8a2092cc0f
commit
2aa53e218f
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user