<Window x:Class="_12_形状画刷和变换_2改变形状的尺寸和放置形状_2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Icon="public/003540AH4M72.jpg" Title="_12_形状画刷和变换_2改变形状的尺寸和放置形状_2" Height="800" Width="800">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0">网格的第一行，图形大学会随着内容变化而变化</TextBlock>

        <Viewbox Grid.Row="1" HorizontalAlignment="Left" Stretch="Uniform" StretchDirection="Both">
            <Canvas Width="200" Height="10">
                <Ellipse Fill="Yellow" Stroke="Blue" Canvas.Left="10" Canvas.Top="10" Width="100" Height="50"
                         HorizontalAlignment="Left" />
                <Rectangle Fill="Yellow" Stroke="Blue" Canvas.Left="30" Canvas.Top="10" Width="100" Height="50"
                           HorizontalAlignment="Left" />
            </Canvas>
        </Viewbox>
    </Grid>
</Window>