Hi, I've been reading Programming WPF, here is one of the examples about Control Template:
<Button DockPanel.Dock="Bottom" x:Name="addButton" Content="Add">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Ellipse Width="128" Height="32" Fill="Yellow" Stroke="Black" />
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
I'm wondering why use a grid but not a simpler panel such as canvas? Since we didn't decalre any row/columns?
Thanks!