mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-30 02:47:45 +08:00
修复波浪动画效果不正确的渲染
This commit is contained in:
parent
3cfd001ebc
commit
bcf64fa824
@ -81,6 +81,7 @@ internal class RoundRectWavePainter : AbstractWavePainter
|
||||
{
|
||||
animation.Duration = SizeMotionDuration;
|
||||
animation.Easing = SizeEasingCurve;
|
||||
Console.WriteLine($"NotifyBuildSizeAnimation-{OriginSize}");
|
||||
animation.Children.Add(new KeyFrame
|
||||
{
|
||||
Setters =
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user