<Window x:Class="_3_WPF命令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="使用xaml绑定命令" Height="450" Width="800">
    <Window.CommandBindings>
        <CommandBinding Command="New" Executed="New_Executed" />
    </Window.CommandBindings>
    <StackPanel>
        <Button Command="New">新建</Button>
    </StackPanel>
</Window>