Scroll Text (and almost anything else) With the ScrollingCanvas Container
Wednesday, September 27th, 2006Click the image to run the WPF ScrollingCanvas example xbap or you can get the source code for it. This example creates a custom user control based on the Canvas container. This ScrollingCanvas allows you to scroll any FrameworkElement: text, video, shapes, or even whole scenes. Moreover, you can scroll multiple FrameworkElement objects at the same time in a single scroll container.Both speed and direction of the scroll is controllable via dependency properties. Simply drop the ScrollingCanvas control on the design surface or add it in XAML, add any FrameworkElements you want to scroll to the ScrollingCanvas container and call the ScrollBegin() method. All object scrolling is handled through local animations in the C# codebehind.