locked
Re-sizable objects for different screen resolutions (Brian McGuigan) - 1/20/2008 10:17 AM PST RRS feed

  • Question

  • By: Brian McGuigan


    Is it possible to produce re-sizable objects with Blend so that they always 
    appear the same size on the users screens no matter what screen resolution 
    they are using?  I want to animate and re-size the GEM on 
    www.RelationshipGEM.com so that it always occupies the same proportion of the 
    user's screen - no matter what resolution they are using.
    Friday, February 22, 2008 4:25 PM

All replies

  • By: Vibor Cipan [MSPL]


    Hi Brian,

    It is possible. There are few ways you can achieve that - you can try
    putting objects in grid, set their alignement properties (strech....), and
    see what comes out of that.

    I remember guys answering this question before on this group so try to look
    for that, and in case you still have difficulties finding answers, say so
    I'll try to digg them up for you.

    Vibor


    "Brian McGuigan" <BrianMcGuigan@discussions.microsoft.com> wrote in message
    news:4C367949-4D99-4723-B412-9EBE12F35479@microsoft.com...
    > Is it possible to produce re-sizable objects with Blend so that they
    > always
    > appear the same size on the users screens no matter what screen resolution
    > they are using? I want to animate and re-size the GEM on
    > www.RelationshipGEM.com so that it always occupies the same proportion of
    > the
    > user's screen - no matter what resolution they are using.
    Monday, February 25, 2008 4:42 PM
  • By: Tor Langlo


    Hi Brian,
    
    > Is it possible to produce re-sizable objects with Blend so that they
    > always appear the same size on the users screens no matter what screen
    > resolution they are using?  I want to animate and re-size the GEM on 
    > www.RelationshipGEM.com so that it always occupies the same proportion
    > of the user's screen - no matter what resolution they are using.
    
    Since WPF is vector based and is using what it calls resolution 
    independents units, it's a good starting point. In theory if you gave your 
    screen element a fixed height and width it should show up with the same 
    physical size on all screens and resolutions.
    
    Unfortunately, because of dispecencies between a monitor's actual DPI and 
    the DPI as reported by Windows (as well as other issues), this is another 
    example where theory and reality is not the same.
    
    If you could give your object a size relative to the total size of the 
    screen (e.g. 25% of the total width/height), then you should be able to use 
    a ViewBox, Image, or Brush to scale your object within the area it's 
    residing.
    
    Hope this helps,
    Tor.
    
    --------
    Tor Langlo
    Koda Software
    Web: http://www.kodasoftware.com
    Blog: http://torlanglo.spaces.live.com
    
    Monday, February 25, 2008 4:42 PM