Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
XamShowcase Billboard Driving down highway example...
posted

 Hi, I want to do something similar to the billboard driving down highway example, but I want the application to "drive" on it's own, rather than clicking the next button. Is there anyway to change the billboards every, say, 5 seconds, rather than relying on the user to click the Next button?

  • 9694
    posted

    Yes, you can use a WPF Storyboard timeline to cause the carousel to scroll. The xamCarouselPanel comes with Commands which can be invoked to scroll the carousel programmatically. These commands are in the XamCarouselPanelCommands class. However, WPF animation works with DependencyProperties, not Commands. To use animation to invoke a command you will need to add a custom DependencyProperty to invoke the command.

    Thanks