The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

GridLayout, take whole space and maintain aspect ratio

Last post 01-26-2010, 2:03 AM by AndyC. 1 replies.
Sort Posts: Previous Next
  •  01-14-2010, 6:57 PM 9525

    GridLayout, take whole space and maintain aspect ratio

    Hi, I think it's quite common to use Scroller with GridLayout. I have a list of images, how I can let them take as much space as they can and also maintain their aspect ration.
    I write the repeater is like this:
    GridLayout Orientation="Vertical" AllowWrap="true" Rows="2"
    And the repeat item has a scale layout:
    ScaleLayout AllowScaleUp="true" AllowScaleDown="true" MaintainAspectRatio="true"

    This turned out only one column is shown.
    If I add the reference size, it will showup, but it will not take the whole space when screen resolution changes.
  •  01-26-2010, 2:03 AM 9538 in reply to 9525

    Re: GridLayout, take whole space and maintain aspect ratio

    Can you post some more complete MCML? The best way to do this is to make some standalone MCML that demonstrates the issue - I find that often when doing that I end up working out what I've done wrong anyway!

    Cheers,
    Andrew
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems