I am new to creating revit addins and using class library projects. Currently, I am creating an addin using a class library project and the first screen is a login screen(using wpf for this) and I want to add a gif animation to that wpf page. I have searched online and found some solutions (wpfanimatedgif nuget package, mediaelement) but the gif won't play inside revit. So I tried these solutions in a WPF project instead of class library project. And they worked. Can someone please help me? Is there another nuget package available? Thanks
EDIT:- Inside C# code , it does shows the thumbnail of the GIF when I use the media element.
But inside Revit , even the thumbnail for the GIF is not visible
In the Xaml:
<MediaElement Name="My_GIF" LoadedBehavior="Play" UnloadedBehavior="Manual" MediaEnded="MediaElement_MediaEnded" Source="Images\planBIMGIF.gif"/>
In the code behind:-
private void MediaElement_MediaEnded(object sender, RoutedEventArgs e)
{
My_GIF.Position = new TimeSpan(0, 0, 20);
My_GIF.Play();
//MessageBox.Show("Playing GIF");
}