Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8136813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:52:38+00:00 2026-06-06T10:52:38+00:00

The C# samples and source code I’ve seen for Win8 Metro-style apps use storyboard

  • 0

The C# samples and source code I’ve seen for Win8 Metro-style apps use storyboard animations to modify a page for different views (not just different full-screen orientations, but snapped and filled view modes as well).

This seems like a good way to adjust your view for different resolutions, orientations, etc, but…

I sometimes get UI specs for portrait & landscape views that require a very different internal structure of <Grid> and <StackPanel> tags. Trying to morph one of these structures into the other using an animation seems like a pretty daunting task, not to mention difficult to maintain as the spec matures.

Before I resign myself to taking the animate-a-single-layout approach, I wanted to make sure that it isn’t possible to simply specify two completely separate XAML layouts, similar to how it works in Android?

Anyone know?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:52:40+00:00Added an answer on June 6, 2026 at 10:52 am

    The only downside is that you have a big duplicated XAML, much like you already do for Landscape/Filled vs. Snapped.

    However, what you can do is animate some specific properties on your Landscape layout if that gets you where you need to be.

    For instance, if have a GridView and your boxes need to go from 250×250 to 200×300, you can just copy the style you use for your ItemTemplate, tweak it so that the width and height values are correct, and use a Storyboard change your ItemTemplate from "Standard250x250" to "MyNewPortrait200x300Style".

    Now, if it is a fundamental change, like the difference between a GridView and a ListView, you might just have to live with some duplicated layout code and using some Storyboards to collapse one and show the other (like the templates do with Landscape/Filled vs. Snapped).

    Edit

    To be clear, I am saying your best options are to either tweak the styling properties via animations, or create an entirely separate Panel (be it a Grid, StackPanel, or whatever) for your other layout and use an animation to set the Visibility on the Landscape one to Collapsed and the Portrait one to Visible. That’s how the Grid Template handles Snapped, and it works really nicely. Much easier than trying to morph each and every child control of your root panel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone seen a something similar to MarkerLight ( http://code.google.com/p/gmaps-samples/source/browse/trunk/youtube/markerlight.js?r=2300 ) for API v3?
Are there any tips for reading source code samples from manufacturer of MCUs'. I
I need some asp.net pagination code samples. I would like suggestions on open source
look this simple django on gae : http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example and this is my code: DIRNAME
I am working with google map api ... http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/GeocodingSimple.mxml What i want to do
I found this file mappanslow.html last week on http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/talks/io2011/map-usability/mappanslow.html?spec=svn265&r=265 and it was very useful
as demonstrated on this PHP code, ( http://code.google.com/p/gdata-samples/source/browse/trunk/doclist/OCRDemo/ocr.php?r=194 ) where an image can be
I was wondering what this snippet exactly does? (found here: http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example/django_bootstrap.py ) # Make
I've seen some code samples that allow to load specific PowerShell scripts from C#,
I've visited :http://code.google.com/p/googletv-android-samples/source/browse/, the LeftNavBarLibrary is right there in front of me , how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.