From bcf64fa824d45db1d797cd17f63b05c5bc5aa9f6 Mon Sep 17 00:00:00 2001 From: polarboy Date: Mon, 1 Jul 2024 10:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A2=E6=B5=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E6=95=88=E6=9E=9C=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtomUI.Controls/Utils/RoundRectWavePainter.cs | 1 + src/AtomUI.Controls/Utils/WaveSpiritAdorner.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/AtomUI.Controls/Utils/RoundRectWavePainter.cs b/src/AtomUI.Controls/Utils/RoundRectWavePainter.cs index 3e097aa..1260ae8 100644 --- a/src/AtomUI.Controls/Utils/RoundRectWavePainter.cs +++ b/src/AtomUI.Controls/Utils/RoundRectWavePainter.cs @@ -81,6 +81,7 @@ internal class RoundRectWavePainter : AbstractWavePainter { animation.Duration = SizeMotionDuration; animation.Easing = SizeEasingCurve; + Console.WriteLine($"NotifyBuildSizeAnimation-{OriginSize}"); animation.Children.Add(new KeyFrame { Setters = diff --git a/src/AtomUI.Controls/Utils/WaveSpiritAdorner.cs b/src/AtomUI.Controls/Utils/WaveSpiritAdorner.cs index 2952854..30a6968 100644 --- a/src/AtomUI.Controls/Utils/WaveSpiritAdorner.cs +++ b/src/AtomUI.Controls/Utils/WaveSpiritAdorner.cs @@ -184,6 +184,10 @@ internal class WaveSpiritAdorner : Control public sealed override void Render(DrawingContext context) { + // TODO 有时候会被合成器触发渲染 + if (!IsPlaying) { + return; + } object currentSize = default!; if (_wavePainter.WaveType == WaveType.CircleWave) { currentSize = LastWaveRadius;