<Window x:Class="_3_WPF命令4_微调命令文本.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命令4_微调命令文本" Height="450" Width="800">
    <Window.CommandBindings>
        <CommandBinding Command="New" Executed="CommandBinding_OnExecuted" />
    </Window.CommandBindings>
    <StackPanel>
        <Button Command="New" Content="{x:Static ApplicationCommands.New}" />

        <Button Command="New" Content="{Binding RelativeSource={RelativeSource Self},Path=Command.Text}" />

        <Button Command="New" ToolTip="{Binding RelativeSource={RelativeSource Self},Path=Command.Text}">
            <Image Source="public/003540AH4M72.jpg" Width="50" />
        </Button>
    </StackPanel>
</Window>