<Window x:Class="LessonA48.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wfh="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Canvas Grid.Column="0">
            <Button Canvas.Left="10" Canvas.Top="10" Click="MyPopupWindow">弹出窗口</Button>
            <Button Canvas.Left="10" Canvas.Top="50" Click="MyDrawWindow">子窗口</Button>
        </Canvas>
        <WindowsFormsHost Grid.Column="1">
            <wf:Panel x:Name="ChartPanel" Dock="Fill"/>
        </WindowsFormsHost>
    </Grid>
</Window>
