<Window x:Class="WPF3.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">
    <Canvas Background="Red">
    </Canvas>
</Window>Canvas是基于绝对定位的,并且不使用HorizontalAlignment属性和VerticaLAlignment属性,因此,此例中的Canvas的尺寸应该是0×0啊,可是为什么它却铺面了窗口呢?