Welcome to MSDN Blogs Sign in | Join | Help

WPF Visual Designer (code name Cider) Tip 2: Resize vs. Move

Take a look at the following XAML:

    <Grid Name="mainGrid">

        <Grid Margin="17,20,132,130" Name="grid1">

            <Button Height="23" Margin="10,10,44,0" Name="button1" VerticalAlignment="Top">Button</Button>

        </Grid>

        <Grid Height="98" Margin="118,0,12,17" Name="grid2" VerticalAlignment="Bottom">

            <Button Height="23" Margin="10,10,63,0" Name="button2" VerticalAlignment="Top">Button</Button>

        </Grid>

    </Grid>

Supposing we want to achieve such effect that button1 is on top of button2, we have two options:

  1. We can select button1, and move to the top of button2.
  2. We can also resize button1much larger so that its bottom right is on button2's bottom right; then, resize on top left.

Is there any differences in resulting XAML?

The answer is: Move will change button1's Parent, yet Resize won't.

(This posting is provided "AS IS" with no warranties, and confers no rights.)

Published Sunday, August 12, 2007 3:38 AM by zhanbos
Filed under:

Comments

# MSDN Blog Postings &raquo; WPF Visual Designer (code name Cider) Tip 2: Resize vs. Move

Saturday, August 18, 2007 11:35 PM by Realize .NET Potential

# WPF Visual Designer (code name Cider) Tip 3: Nudge vs. Move

Applies to Visual Studio 2008 Beta2. User can also change controls' positions via keyboard nudge: Select

Sunday, August 19, 2007 12:13 AM by Noticias externas

# WPF Visual Designer (code name Cider) Tip 3: Nudge vs. Move

Applies to Visual Studio 2008 Beta2. User can also change controls&#39; positions via keyboard nudge

Anonymous comments are disabled
 
Page view tracker