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:
-
We can select button1, and move to the top of button2.
-
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.)