AnimatedImage.Avalonia 1.0.7

dotnet add package AnimatedImage.Avalonia --version 1.0.7                
NuGet\Install-Package AnimatedImage.Avalonia -Version 1.0.7                
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="1.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AnimatedImage.Avalonia --version 1.0.7                
#r "nuget: AnimatedImage.Avalonia, 1.0.7"                
#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.
// Install AnimatedImage.Avalonia as a Cake Addin
#addin nuget:?package=AnimatedImage.Avalonia&version=1.0.7

// Install AnimatedImage.Avalonia as a Cake Tool
#tool nuget:?package=AnimatedImage.Avalonia&version=1.0.7                

A simple library to display animated GIF images and animated PNG images in WPF and 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" />
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories (1)

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

Repository Stars
nor0x/Dots
the 🙂 friendly .NET SDK manager
Version Downloads Last updated
1.0.7 4,765 3/11/2024
1.0.6 141 3/9/2024
1.0.4 5,283 10/22/2023
1.0.3 1,148 9/5/2023
1.0.1 806 8/7/2023