Lottie-Windows icon indicating copy to clipboard operation
Lottie-Windows copied to clipboard

Is it work for WPF app?

Open hristowwe opened this issue 3 years ago • 2 comments

I wonder if this library works for WPF app in c#. And if there are few sample how it works

hristowwe avatar Sep 04 '21 11:09 hristowwe

Hello, thank you for reaching out. Currently there are no immediate plans for porting the implementation that uses Windows.UI.Composition APIs to WPF. Can you tell us a bit more about your app and how you are planning on using Lottie within the app? What kind of animations are you hoping to play (e.g. icon animations, illustrations, etc.)? Is WPF the only UI framework in your app? Thank you.

nishitha-burman avatar Sep 17 '21 16:09 nishitha-burman

Hi, we would also like to use Lottie animations in WPF applications. Our WPF applications based on .net 6 and C# 10 (ported in the past few weeks). Our applications are used on a Windows 10 LTSC 2019 in the medical sector.

Currently, the animations in our views/xaml are rendered/displayes with a MediaElement component (Unosquare.FFME) and MP4 files. However, mp4-files have three main disadvantages:

  • not vector based / not freely scalable in height/width
  • no transparent background possible (our application supported a light and a dark theme). This always requires two MP4 files per animation.
  • The files take up a lot of disk space

Later we will also use these animations in mobile apps for Android and iOS (probably based on .NET MAUI).

We'd really appreciate it if you ported your Lottie implementation to WPF 👍 :-)

Best regards Daniel

D4N4M8 avatar Jan 20 '22 12:01 D4N4M8