IceSky.WpfAnimation
1.0.1
dotnet add package IceSky.WpfAnimation --version 1.0.1
NuGet\Install-Package IceSky.WpfAnimation -Version 1.0.1
<PackageReference Include="IceSky.WpfAnimation" Version="1.0.1" />
<PackageVersion Include="IceSky.WpfAnimation" Version="1.0.1" />
<PackageReference Include="IceSky.WpfAnimation" />
paket add IceSky.WpfAnimation --version 1.0.1
#r "nuget: IceSky.WpfAnimation, 1.0.1"
#:package IceSky.WpfAnimation@1.0.1
#addin nuget:?package=IceSky.WpfAnimation&version=1.0.1
#tool nuget:?package=IceSky.WpfAnimation&version=1.0.1
WPFAnimation
This is a WPF animation library that includes several animation components, such as common animation components, animated number control, continuous path animation control, path flow animation control, geometry morph animation control, particle animation control and grid animation control.
Recommended Windows apps https://iceskydev.github.io/AppDoc/
✨ Features
Common animation components
This component is a lightweight and highly stable general animation framework for WPF, which enables quick configuration of multiple animation effects for elements of FrameworkElement type. Multi-type Animation Support:
- Basic transformation animations: Scale, Rotate, Translate and Skew
- Visual effect animations: Blur and Shadow
- Property animations: Width, Height, Opacity, Color, CornerRadius
Animated number control
This control implements smooth numerical transition animation, it supports custom animation duration and number display formats
Continuous path animation control
Its core function is to enable any UI element, shape, or control to move continuously, smoothly, and controllably along a custom continuous geometric path
Path flow animation control
This control supports smooth flowing animation on custom geometric paths, This control offers two animation modes:
- Native path dash line animation
- Custom elements moving along the path
Geometry morph animation control
The core function of this control is to achieve smooth morphing transition animations between arbitrary geometric shapes. It supports binding source and target paths, and you can also specify a list of paths for continuous animations.
Particle animation control
This particle effect component supports generating dynamic particle effects based on custom contour paths
- Adapts to any PathGeometry as the particle generation contour
- Multiple particle generation methods and movement directions
- Full Particle Customization: Adjustable parameters including size, color, opacity, rotation, scale, jitter, etc.
Grid animation control
- Customizable grid rows/columns count, element size, horizontal/vertical spacing
- Supports rendering of Ellipse, Rectangle, Custom Path elements
- Supports setting custom container path geometry
- Includes basic animations and extended high-customization animations
- Supports animation control, include: start, stop, pause, resume
📦 Installation
Prerequisites
- .net4.8, .NET 6.0 or later
- Visual Studio 2022 or later (recommended)
🚀 Quick Start
Basic Usage
<Window xmlns:ctrl="clr-namespace:IceSky.WpfAnimation.Controls;assembly=IceSky.WpfAnimation"
xmlns:model="clr-namespace:IceSky.WpfAnimation.Models;assembly=IceSky.WpfAnimation"
xmlns:anim="clr-namespace:IceSky.WpfAnimation.GridAnimations;assembly=IceSky.WpfAnimation">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/IceSky.WpfAnimation;component/Generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
...
<control:AnimatedNumber TargetValue="{Binding Text}"/>
<control:PathAnimationControl PathData="{Binding Text}"/>
<control:GeometryMorphControl FromGeometry="{Binding FromData}"
ToGeometry="{Binding ToData}"/>
<control:ParticleVisualHost />
<model:AnimationSetting x:Key="ScaleInX"
AnimationType="Double" TargetProperty="ScaleX"
FromValue="0" ToValue="1" Duration="1000"/>
<control:GridElementControl>
<model:ElementTemplateConfig ShapeType="CustomPath" CustomPathGeometry="M50,0 L100,100 L0,100 Z">
<model:ElementTemplateConfig.ElementStyle>
<Style TargetType="Path">
<Setter Property="Fill" Value="#fA90E2"/>
<Setter Property="Stroke" Value="#28f585"/>
<Setter Property="StrokeThickness" Value="1"/>
</Style>
</model:ElementTemplateConfig.ElementStyle>
</model:ElementTemplateConfig>
</control:GridElementControl>
</Window>
💡Add package from nuget
dotnet add package IceSky.WpfAnimation
Document
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.