Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

I have worked through the tutorials on YouTube for theme creation but cannot add an animated gif to the theme I am making. despite several attempts I cannot get the animated gif to work. I have added the required line to the user control section on the view. 

With this line in place it will then accept and recognise the <image gif: tag. However, when I try putting image behavior after the tag it is not recognised as a valid property and neither is animated source. With these in place I get an error notification and the view does not load.

Any ideas what I am doing wrong or what I have missed?

 

 

 

 

 

 

Edited by shro2016
Posted

Ah, if it's in the tutorial for a theme to be made with it sure. I know default didn't have gif support though. I didn't realize it was in there. :P

 

Edit: Apparently @Jason Carr did add this and told no one. xD So hopefully he can help out, or if another theme creator knows they can help. Sorry about that. xD

Posted

@shro2016: You can use a MediaElement to display your animated gif.  However, it does not loop the gif indefinitely -- the gif freezes up about 10 seconds after loading.  It's possibly a problem with the gif I'm loading, but just keep that in mind.


<MediaElement Source="PATH TO YOUR ANIMATED GIF" LoadedBehavior="Play" />
Posted

I tried the <mediaelement> tag but it just presented as a black rectangle. The gif I am trying to use has a transparent background with fading in and out white text. For now I have set this as a static image instead.

@Jason Carr is the animated gif feature still expected to work in version 7+?

 

 

Posted

Thanks @Jason Carr and no need to apologise, the effort you put into this app and the support from both yourself and the community is phenomenal and the best I have known for any application. there are bound to be certain bits that break when new features are put in place that is just par for the course with systems development. It's  just good to know that It's not something I was doing wrong. 

 

 

  • Like 2
  • 3 weeks later...
Posted

@shro2016 Animated gifs are working, but however if you want to use an animated gif per platform or per game that was never implemented here is a link to an alternate coverflow i did awhile back with an animated gif that works when you first load up the fullscreen coverflow view, i checked and it still works.  

 

Posted

Thanks @Maddoc1007 I will give this another go using your example. Fingers crossed this will let me get the bits of animation i need completed. The animation is only going to be very simple in the theme but it just feels a bit too "static" without it in place.

Posted

@Maddoc1007 - I tried the file from the download and it generates an error both in visual studio and when used in the cabinet. The error is attributed to the transitions assembly. I also tried taking the lines for the gif animation directly out of the file and placing into the view I am working on (the xmlns line and the actual control) and get the same error as I did when taking these lines from the tutorial @Jason Carr created - which is in essence that the animatedsource is not a valid property.

Any idea what I am missing/doing wrong?

Posted

@shro2016 Yes i figured it out 

These lines need to be changed
From:

xmlns:transitions="clr-namespace:BigBox.Transitions;assembly=BigBox"
xmlns:coverFlow="clr-namespace:BigBox.Controls.CoverFlow;assembly=BigBox"
xmlns:gif="clr-namespace:WpfAnimatedGif;assembly=BigBox"

To:
  
xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf"
xmlns:coverFlow="clr-namespace:Unbroken.LaunchBox.Wpf.Controls.CoverFlow;assembly=Unbroken.LaunchBox.Wpf"
xmlns:gif="clr-namespace:WpfAnimatedGif;assembly=Unbroken.LaunchBox.Wpf" 

 

Here is the revised Coverflow for you also read the readme

 

 

Alternate_Coverflow.zip

Posted (edited)

Awesome! I now have animation working in my theme! Thanks so much with your help in working this one out for me @Maddoc1007 - this was way beyond my knowledge of the assemblies.

Thanks again 

Edited by shro2016
  • 5 months later...
  • 4 weeks later...
Posted
3 hours ago, Aagsar said:

Can a gift be renamed as Background.gift as if it were a video and just work ? it is this possible?

 

No, that won't work. You have to change the XAML, and as stated above GIF can be a little buggy.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...