GifBolt.Wpf
1.0.55
dotnet add package GifBolt.Wpf --version 1.0.55
NuGet\Install-Package GifBolt.Wpf -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.Wpf" Version="1.0.55" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GifBolt.Wpf" Version="1.0.55" />
<PackageReference Include="GifBolt.Wpf" />
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.Wpf --version 1.0.55
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GifBolt.Wpf, 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.Wpf@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.Wpf&version=1.0.55
#tool nuget:?package=GifBolt.Wpf&version=1.0.55
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GifBolt.Wpf
WPF attached properties for animating GIFs with GPU acceleration support via GifBolt native library.
Features
- Attached Properties: Use on standard WPF
Imagecontrols - GPU Accelerated: Native C++ decoder with Direct3D 11 rendering
- High Performance: Smooth playback of high-resolution GIFs
- Repeat Control: Configure looping behavior ("Forever", "3x", etc.)
- Design Mode Support: Optional animation in Visual Studio designer
Installation
dotnet add package GifBolt.Wpf
Usage
XAML Attached Properties
<Window x:Class="MyApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:gif="clr-namespace:GifBolt.Wpf;assembly=GifBolt.Wpf">
<Image gif:AnimationBehavior.SourceUri="pack://application:,,,/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="animation.gif"
gif:AnimationBehavior.AnimateInDesignMode="True" />
</Window>
Code-Behind
using GifBolt.Wpf;
using System.Windows.Controls;
// 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
- .NET Framework 4.7.2+
- Windows with Direct3D 11 support
- Requires
GifBolt.Native.dllin application directory
Documentation
For complete documentation, visit https://github.com/yourusername/GifBolt
License
MIT License - see LICENSE file for details
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | 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.
-
.NETFramework 4.7.2
- GifBolt (>= 1.0.55)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.