chore: minor modify.
This commit is contained in:
1 parent
79b32d573c
commit
3a4d9370de
2 files changed
+2
-7
No files matched your search
@@ -123,7 +123,7 @@
|
|||||||
"demoItemList": [
|
"demoItemList": [
|
||||||
[ "HatchBrushGenerator", "HatchBrushGeneratorDemo", "Brush.DataGenerator", "", "" ],
|
[ "HatchBrushGenerator", "HatchBrushGeneratorDemo", "Brush.DataGenerator", "", "" ],
|
||||||
[ "MorphingAnimation", "GeometryAnimationDemo", "Brush.Animation", "", "" ],
|
[ "MorphingAnimation", "GeometryAnimationDemo", "Brush.Animation", "", "" ],
|
||||||
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ],
|
[ "Effects", "EffectsDemo", "Brush.Effects", "", "" ]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -11,7 +11,7 @@ using HandyControl.Tools;
|
|||||||
|
|
||||||
namespace HandyControl.Controls;
|
namespace HandyControl.Controls;
|
||||||
|
|
||||||
public class ConfettiCannon : DependencyObject
|
public class ConfettiCannon
|
||||||
{
|
{
|
||||||
public static readonly DependencyProperty TokenProperty = DependencyProperty.RegisterAttached(
|
public static readonly DependencyProperty TokenProperty = DependencyProperty.RegisterAttached(
|
||||||
"Token", typeof(string), typeof(ConfettiCannon), new PropertyMetadata(null, OnTokenChanged));
|
"Token", typeof(string), typeof(ConfettiCannon), new PropertyMetadata(null, OnTokenChanged));
|
||||||
@@ -30,11 +30,6 @@ public class ConfettiCannon : DependencyObject
|
|||||||
private readonly DrawingVisual _offscreenVisual = new();
|
private readonly DrawingVisual _offscreenVisual = new();
|
||||||
private readonly ConcurrentQueue<Confetti> _confettis = [];
|
private readonly ConcurrentQueue<Confetti> _confettis = [];
|
||||||
|
|
||||||
private readonly EllipseGeometry _sharedCircleGeometry = new()
|
|
||||||
{
|
|
||||||
Transform = new RotateTransform()
|
|
||||||
};
|
|
||||||
|
|
||||||
private Rect _renderRect;
|
private Rect _renderRect;
|
||||||
private AdornerLayer _currentAdornerLayer;
|
private AdornerLayer _currentAdornerLayer;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user