chore: minor modify.

This commit is contained in:
NaBian committed 2025-05-19 21:32:56 +08:00
1 parent 79b32d573c
commit 3a4d9370de
2 files changed
+2 -7

No files matched your search

@@ -123,7 +123,7 @@
"demoItemList": [
[ "HatchBrushGenerator", "HatchBrushGeneratorDemo", "Brush.DataGenerator", "", "" ],
[ "MorphingAnimation", "GeometryAnimationDemo", "Brush.Animation", "", "" ],
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ],
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ]
]
}
]
@@ -11,7 +11,7 @@ using HandyControl.Tools;
namespace HandyControl.Controls;
public class ConfettiCannon : DependencyObject
public class ConfettiCannon
{
public static readonly DependencyProperty TokenProperty = DependencyProperty.RegisterAttached(
"Token", typeof(string), typeof(ConfettiCannon), new PropertyMetadata(null, OnTokenChanged));
@@ -30,11 +30,6 @@ public class ConfettiCannon : DependencyObject
private readonly DrawingVisual _offscreenVisual = new();
private readonly ConcurrentQueue<Confetti> _confettis = [];
private readonly EllipseGeometry _sharedCircleGeometry = new()
{
Transform = new RotateTransform()
};
private Rect _renderRect;
private AdornerLayer _currentAdornerLayer;