Net Maui animated background

Viewed 45

I have a gif animation that i want to use as background for my ContentPage.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MyApp.MainPage"
             xmlns:viewmodel="clr-namespace:MyApp.ViewModels"
             x:DataType="viewmodel:MainViewModel"
             BackgroundImageSource="background.gif">

I tried it this way but only the first frame is shown as static image.

Does anyone know how to set an animated background on Net Maui?

PS: This animation is from LottieFiles so i have the .gif and the .json file if I need that.

0 Answers
Related