8000 GitHub - quicoli/LottieSharp at 1.1.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

quicoli/LottieSharp

Repository files navigation

LottieSharp

Logo C# (WPF) port of Lottie (https://github.com/airbnb/lottie-android) based on .NET using sharpdx (http://sharpdx.org/)

Usage

PM> Install-Package LottieSharp -Version 1.1.3

  • Install from nuget: LottieSharp;

  • Import into your xaml the library

    xmlns:lottieSharp="clr-namespace:LottieSharp;assembly=LottieSharp"

  • Now you can include the control in your layout

<lottieSharp:LottieAnimationView 
    x:Name="LottieAnimationView" 
    DefaultCacheStrategy="None" 
    FileName="Assets/Spider Loader.json" AutoPlay="True" 
    VerticalAlignment="Center" 
    HorizontalAlignment="Center"/>

The FileName property points to an After Effects animation file. You can write the filename in xaml like shown or bind to a property in your viewmodel.

The AutoPlay property indicates if the animation starts when the usercontrol is loaded.

There are many free animations at: LottieFiles

About

Lottie animations for WPF applications

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

Languages

0