I’ve been working on some dynamic Panorama designs, but there were a couple of things I was finding tricky:
1) Loading a Panorama control at a specific position. (also just navigating to a different place in one.)
2) Preventing a Panorama from wrapping around from the last to the first element.
In the first case, I just wasn’t looking in the right place. To change which panel of a Panorama you are viewing, you can use:
Panorama.DefaultItem = Panorama.Items[index];
For the second case, you might be asking WHY I would want to prevent the Panorama from wrapping around, which is the default behavior. In my application, when you first come to the Panorama control, you only have ONE PanoramaItem. So scrolling is more confusing than anything else. As you continue to enter data into the app, however, the Panorama can grow to as many as 10 Panorama items.
The short story on this, however, is that it’s not really possible. If you need to change the Panorama’s behavior that drastically, you might want to look at using a different control.
Leave a Reply