Scroll Text (and almost anything else) With the ScrollingCanvas Container
Click 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.
March 20th, 2007 at 6:42 pm
I have downloaded the source code, but i am having some problems because the project needs “xamlxamlcontrols” reference.
Where can i get this reference?
Thanks
JP
March 20th, 2007 at 11:54 pm
Can you tell me where to get the “xamlxamlcontrols” reference used in this project? I have downloaded the source files, but i can’t get the reference…
Thanks
JP
April 18th, 2007 at 5:17 pm
I’m looking to use this control to create a ‘ticker’.
It scrolls nicely when I add elements to the XAML, but if I try to add items dynamically from the code behind they dont scroll.
Any suggestions?
June 18th, 2007 at 3:32 pm
The zip file for this example appears to be corrupt. Can you please repost it? Thanks!
February 14th, 2008 at 6:02 am
It asks for some network password while building?
February 14th, 2008 at 4:50 pm
Sony: I just grabbed the file off the website and did a build. I didn’t get any network password request.
Michael: The zip seems ok.
Joao: The XamlXamlControls reference it is looking for is the assembly from the ScrollingCanvas project (not the ScrollingCanvasXBAPExample project). If it isn’t picking up the assembly correctly just remove it and add it back from the BIN directory. Alternately you can simply add the entire project to the solution and then add a reference to the project.