GifBolt.Avalonia 1.0.55

dotnet add package GifBolt.Avalonia --version 1.0.55
                    
NuGet\Install-Package GifBolt.Avalonia -Version 1.0.55
                    
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="GifBolt.Avalonia" Version="1.0.55" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GifBolt.Avalonia" Version="1.0.55" />
                    
Directory.Packages.props
<PackageReference Include="GifBolt.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 GifBolt.Avalonia --version 1.0.55
                    
#r "nuget: GifBolt.Avalonia, 1.0.55"
                    
#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 GifBolt.Avalonia@1.0.55
                    
#: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=GifBolt.Avalonia&version=1.0.55
                    
Install as a Cake Addin
#tool nuget:?package=GifBolt.Avalonia&version=1.0.55
                    
Install as a Cake Tool

GifBolt.Avalonia

Avalonia attached properties for animating GIFs with GPU acceleration support via GifBolt native library.

Features

  • Attached Properties: Use on standard Avalonia Image controls
  • GPU Accelerated: Native C++ decoder with platform-specific rendering
  • Cross-Platform Support: Windows (Direct3D 11), macOS (Metal), and Linux
  • High Performance: Smooth playback of high-resolution GIFs
  • Repeat Control: Configure looping behavior ("Forever", "3x", etc.)
  • API Compatibility: Matches WPF version for easy cross-platform development

Installation

dotnet add package GifBolt.Avalonia

Usage

XAML Attached Properties

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:gif="using:GifBolt.Avalonia">

    
    <Image gif:AnimationBehavior.SourceUri="avares://MyApp/Assets/animation.gif" />

    
    <Image gif:AnimationBehavior.SourceUri="animation.gif"
           gif:AnimationBehavior.RepeatBehavior="3x" />

    
    <Image gif:AnimationBehavior.SourceUri="animation.gif"
           gif:AnimationBehavior.RepeatBehavior="Forever" />

    
    <Image gif:AnimationBehavior.SourceUri="Assets/animation.gif" />
</Window>

Code-Behind

using Avalonia.Controls;
using GifBolt.Avalonia;

// Set animated source
Image myImage = new Image();
AnimationBehavior.SetSourceUri(myImage, "path/to/animation.gif");

// Configure repeat behavior
AnimationBehavior.SetRepeatBehavior(myImage, "Forever");

// Get current source
string source = AnimationBehavior.GetSourceUri(myImage);

Repeat Behavior Values

  • "Forever" - Loop indefinitely
  • "0x" - Use GIF metadata (default)
  • "3x" - Repeat 3 times
  • "1x" - Play once

Requirements

  • Avalonia 11.0+
  • .NET 6.0+
  • Requires GifBolt.Native.dll (Windows), libGifBolt.Native.dylib (macOS), or libGifBolt.Native.so (Linux) in application directory

Platform Support

  • Windows: Direct3D 11 GPU acceleration
  • macOS: Metal GPU acceleration
  • Linux: Software rendering (OpenGL backend planned)

Documentation

For complete documentation, visit https://github.com/yourusername/GifBolt

License

MIT License - see LICENSE file for details

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  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 was computed.  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. 
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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.55 132 1/20/2026
1.0.54 123 1/20/2026
1.0.53 110 1/20/2026
1.0.52 116 1/20/2026
1.0.51 117 1/20/2026
1.0.50 110 1/20/2026
1.0.49 117 1/20/2026
1.0.46 123 1/19/2026