Skip to content

Commit 3a4d937

Browse files
committed
chore: minor modify.
1 parent 79b32d5 commit 3a4d937

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Shared/HandyControlDemo_Shared/Data/DemoInfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"demoItemList": [
124124
[ "HatchBrushGenerator", "HatchBrushGeneratorDemo", "Brush.DataGenerator", "", "" ],
125125
[ "MorphingAnimation", "GeometryAnimationDemo", "Brush.Animation", "", "" ],
126-
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ],
126+
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ]
127127
]
128128
}
129129
]

src/Shared/HandyControl_Shared/Controls/ConfettiCannon/ConfettiCannon.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace HandyControl.Controls;
1313

14-
public class ConfettiCannon : DependencyObject
14+
public class ConfettiCannon
1515
{
1616
public static readonly DependencyProperty TokenProperty = DependencyProperty.RegisterAttached(
1717
"Token", typeof(string), typeof(ConfettiCannon), new PropertyMetadata(null, OnTokenChanged));
@@ -30,11 +30,6 @@ public static string GetToken(DependencyObject element)
3030
private readonly DrawingVisual _offscreenVisual = new();
3131
private readonly ConcurrentQueue<Confetti> _confettis = [];
3232

33-
private readonly EllipseGeometry _sharedCircleGeometry = new()
34-
{
35-
Transform = new RotateTransform()
36-
};
37-
3833
private Rect _renderRect;
3934
private AdornerLayer _currentAdornerLayer;
4035

0 commit comments

Comments
 (0)