locked
Silverlight animation - How to: don't resize some controls inside a container? RRS feed

  • Question

  • I'm creating an animation for a silverlight app in Blend. The animation is a border control that is resized. As it is now, all the controls inside the border are resized too. Is there a way to prevent this from happening? Is it possible to decide which controls inside a container that should be resized and which should not?

    Thanks for help!
    Thursday, July 23, 2009 6:39 PM

All replies

  • Set whatever container you have inside your Border to a fixed size and your controls won't resize. Something like:

    <Border>
       <Grid Width="1024" Height="768">
          <!-- Your controls here will stay the same size when you animate the border -->
       </Grid
    </Border>


    www.LeonTerry.com
    • Proposed as answer by VLTII Thursday, July 23, 2009 8:32 PM
    Thursday, July 23, 2009 8:32 PM