{"id":13470833,"url":"https://github.com/XamlAnimatedGif/WpfAnimatedGif","last_synced_at":"2025-03-26T11:33:44.730Z","repository":{"id":20571898,"uuid":"23852265","full_name":"XamlAnimatedGif/WpfAnimatedGif","owner":"XamlAnimatedGif","description":"A simple library to display animated GIF images in WPF, usable in XAML or in code.","archived":false,"fork":false,"pushed_at":"2023-05-11T13:07:16.000Z","size":1837,"stargazers_count":639,"open_issues_count":2,"forks_count":121,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-05-16T12:52:06.215Z","etag":null,"topics":["animated","gif","hacktoberfest","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XamlAnimatedGif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-09-09T22:22:41.000Z","updated_at":"2024-05-11T12:55:01.000Z","dependencies_parsed_at":"2024-01-07T12:52:07.968Z","dependency_job_id":"72c09df1-1604-4348-a063-96a8146de1f4","html_url":"https://github.com/XamlAnimatedGif/WpfAnimatedGif","commit_stats":{"total_commits":95,"total_committers":12,"mean_commits":7.916666666666667,"dds":0.5684210526315789,"last_synced_commit":"2937f9d314c0139eaa8d08ece581f58abed984b1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XamlAnimatedGif%2FWpfAnimatedGif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XamlAnimatedGif%2FWpfAnimatedGif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XamlAnimatedGif%2FWpfAnimatedGif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XamlAnimatedGif%2FWpfAnimatedGif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XamlAnimatedGif","download_url":"https://codeload.github.com/XamlAnimatedGif/WpfAnimatedGif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222138883,"owners_count":16937422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animated","gif","hacktoberfest","wpf"],"created_at":"2024-07-31T16:00:36.381Z","updated_at":"2025-03-26T11:33:44.718Z","avatar_url":"https://github.com/XamlAnimatedGif.png","language":"C#","funding_links":[],"categories":["C# #","Libraries","C#"],"sub_categories":["C++","Individual Controls"],"readme":"WPF Animated GIF\n================\n\n[![NuGet version](https://img.shields.io/nuget/v/WpfAnimatedGif.svg?logo=nuget)](https://www.nuget.org/packages/WpfAnimatedGif)\n[![AppVeyor build](https://img.shields.io/appveyor/ci/thomaslevesque/wpfanimatedgif.svg?logo=appveyor\u0026logoColor=cccccc)](https://ci.appveyor.com/project/thomaslevesque/wpfanimatedgif)\n\n_Nuget package available here: [WpfAnimatedGif](https://nuget.org/packages/WpfAnimatedGif)._\n\nA simple library to display animated GIF images in WPF, usable in XAML or in code.\n\nIt's very easy to use: in XAML, instead of setting the `Source` property, set the `AnimatedSource` attached property to the image you want:\n\n```xml\n\u003cWindow x:Class=\"WpfAnimatedGif.Demo.MainWindow\"\n        xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n        xmlns:gif=\"http://wpfanimatedgif.codeplex.com\"\n        Title=\"MainWindow\" Height=\"350\" Width=\"525\"\u003e\n    \u003cGrid\u003e\n        \u003cImage gif:ImageBehavior.AnimatedSource=\"Images/animated.gif\" /\u003e\n```\n\nYou can also specify the repeat behavior (the default is `0x`, which means it will use the repeat count from the GIF metadata):\n\n```xml\n        \u003cImage gif:ImageBehavior.RepeatBehavior=\"3x\"\n               gif:ImageBehavior.AnimatedSource=\"Images/animated.gif\" /\u003e\n```\n\nAnd of course you can also set the image in code:\n\n```csharp\nvar image = new BitmapImage();\nimage.BeginInit();\nimage.UriSource = new Uri(fileName);\nimage.EndInit();\nImageBehavior.SetAnimatedSource(img, image);\n```\n\nSee the [wiki](https://github.com/XamlAnimatedGif/WpfAnimatedGif/wiki) for more details on usage.\n\nFeatures\n--------\n\n* Animates GIF images in a normal `Image` control; no need to use a specific control\n* Takes actual frame duration into account\n* Repeat behavior can be specified; if unspecified, the repeat count from the GIF metadata is used\n* Notification when the animation completes, in case you need to do something after the animation\n* Animation preview in design mode (must be enabled explicitly)\n* Support for controlling the animation manually (pause/resume/seek)\n\nHow to build\n------------\n\nRun `build.cmd`.\n\nNote: the library's version number is determined by [MinVer](https://github.com/adamralph/minver) based on Git history and tags. A consequence of this is that if you build the project outside a Git repository (e.g. if you just download sources), you'll get a version number of 0.0.0.0. So, in order to build with the correct version number, make sure you're in a Git clone of the project, and that your clone has the tags from the upstream project (`git fetch upstream --tags`, assuming your remote for the upstream project is named `upstream`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXamlAnimatedGif%2FWpfAnimatedGif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXamlAnimatedGif%2FWpfAnimatedGif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXamlAnimatedGif%2FWpfAnimatedGif/lists"}