<Window x:Class="_3_WPF命令3_使用命令源.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="_3_WPF命令3_使用命令源" Height="450" Width="800">
    <Window.CommandBindings>
        <CommandBinding Command="New" Executed="New_Executed" />
    </Window.CommandBindings>

    <StackPanel>
        <Menu>
            <MenuItem Header="文件">
                <MenuItem Command="New" />
            </MenuItem>
        </Menu>

    </StackPanel>
</Window>