This is a mirror of official site: http://jasper-net.blogspot.com/

Making your Content Scrollable

| Wednesday, September 8, 2010
Every now and then, your application may require your users to scroll through a boatload of content. The following video shows an example of me scrolling through a large amount of content on the Windows Phone:

The scrolling behavior you see in my application in the video is not provided by default. Even though the content I was displaying was too large to display on a single screen, I had to perform some additional steps to make sure my custom content could actually be scrolled.

By the end of this brief tutorial, you too will learn the magic additional steps needed to allow users to scroll through your content.

Getting Started
For this tutorial, simply make sure you have everything up and running to be able to create a Windows Phone, Silverlight, or WPF project using Expression Blend.

While this tutorial is optimized for the Windows Phone, you’ll be able to use what you’ve learned in Silverlight and WPF as well.

Introducing the ScrollViewer
All of the content you create lives inside layout panels such as the Grid, Canvas, or WrapPanel. All of these controls have their own unique abilities to make it easier for you to place and arrange your content. What they don't have is the ability to deal with content that goes outside of their boundaries.

Read more: Kirupa.com

Posted via email from .NET Info

0 comments: