AnimatedImage.Avalonia 2.1.4

dotnet add package AnimatedImage.Avalonia --version 2.1.4
                    
NuGet\Install-Package AnimatedImage.Avalonia -Version 2.1.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AnimatedImage.Avalonia" Version="2.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AnimatedImage.Avalonia" Version="2.1.4" />
                    
Directory.Packages.props
<PackageReference Include="AnimatedImage.Avalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AnimatedImage.Avalonia --version 2.1.4
                    
#r "nuget: AnimatedImage.Avalonia, 2.1.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AnimatedImage.Avalonia@2.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AnimatedImage.Avalonia&version=2.1.4
                    
Install as a Cake Addin
#tool nuget:?package=AnimatedImage.Avalonia&version=2.1.4
                    
Install as a Cake Tool

A simple library to display animated GIF images, animated PNG images and animated WEBP images in AvaloniaUI, usable in XAML or in code.

How to use

It's very easy to use: in XAML, instead of setting the Source property, set the AnimatedSource attached property to the image you want:

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:anim="https://github.com/whistyun/AnimatedImage.Avalonia"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Image anim:ImageBehavior.AnimatedSource="Images/animated.gif" />

You can also specify the repeat behavior (the default is 0x, which means it will use the repeat count from the GIF metadata):

<Image anim:ImageBehavior.RepeatBehavior="3x"
       anim:ImageBehavior.AnimatedSource="Images/animated.gif" />

WebP supporting

To use WebP, AnimatedImage.Native library is required.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on AnimatedImage.Avalonia:

Package Downloads
CodeWF.Markdown

CodeWF.Markdown 完整包:在 CodeWF.Markdown.Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、PNG/PDF/Word/公众号 HTML 导出,以及 Markdown 源码编辑器与单栏实时编辑(所见即所得)控件。Full CodeWF.Markdown package: rendering capabilities plus source and WYSIWYG editors.

CodeWF.Markdown.Themes

CodeWF.Markdown 完整包的样式入口:在 CodeWF.Markdown.Lite.Themes 的控件模板与 18 套排版主题之上,叠加图片能力控件外观。Styles entry point for the full CodeWF.Markdown package.

CodeWF.Avalonia.Markdown

Markdown 完整包:在 Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、PNG/PDF/Word/公众号 HTML 导出,以及源码编辑器与单栏实时编辑(所见即所得)控件,并内置能力控件主题。Full Markdown package: images, math, mermaid, highlighting, export and editors on top of the Lite engine.

CodeWF.Markdown.Images

Image rendering capability package for CodeWF.Markdown (SVG/GIF preview, async loading with cancellation, click-to-preview).

CodeWF.Markdown.Export

Export capability package for CodeWF.Markdown: PNG / PDF / Word export and social-platform clipboard HTML.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on AnimatedImage.Avalonia:

Repository Stars
SirDiabo/GithubLauncher
A Launcher that Downloads and Updates Applications from Github Releases
nor0x/Dots
the 🙂 friendly .NET SDK manager
Version Downloads Last Updated
2.1.4 29,127 2/7/2026
2.1.3 198 2/5/2026
2.1.2 17,794 10/4/2025
2.1.0 955 9/13/2025
2.0.0 6,926 11/30/2024
1.0.7 13,518 3/11/2024
1.0.6 346 3/9/2024
1.0.4 13,212 10/22/2023
1.0.3 1,337 9/5/2023
1.0.1 1,055 8/7/2023