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

How to set the animatedvisuals from the code behind?

Open steam3d opened this issue 2 years ago • 1 comments

It is easy from xaml, but how can i set the animation from code behind?

<muxc:AnimatedVisualPlayer x:Name="Modified_Player" AutomationProperties.Name="Lottie animation">
            <animatedvisuals:LottieLogo1_Modified x:Name="Modified_Source_LottieLogo1" />
</muxc:AnimatedVisualPlayer>

steam3d avatar Jun 18 '22 11:06 steam3d

I think you should be able to do something like that:

Modified_Player.Source = new LottieLogo1_Modified();

aborziak-ms avatar Jul 11 '22 17:07 aborziak-ms