Παρακάτω υπάρχει ένα παράδειγμα που ελπίζω να καλύπτει όλες σου
τις απορίες. Αν κάτι δεν καταλαβαίνεις πες μου να σου το εξηγήσω.
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid HorizontalAlignment="Stretch" Background="LightBlue">
<Grid.RowDefinitions>
<RowDefinition Height="30*" />
<RowDefinition Height="70*" />
</Grid.RowDefinitions>
<Canvas Grid.Row="0" Grid.Column="0" Name="canvas1" Background="Aquamarine" HorizontalAlignment="Stretch">
<Label Content="Top Canvas 30% height"/>
</Canvas>
<Canvas Grid.Row="1" Grid.Column="0" Name="canvas2" Background="Aquamarine" HorizontalAlignment="Stretch">
<Label Content="Top Canvas 70% height"/>
</Canvas>
<Button Grid.Row="0" Grid.Column="0" Content="Button at center" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
</Window>