<Window x:Class="CommandHandling.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="CommandHandling" Height="300" Width="300"
    >
    <DockPanel>
      <Menu DockPanel.Dock="Top">
        <MenuItem Header="_File">
          <MenuItem Command="New" />
        </MenuItem>
      </Menu>
      <TextBox x:Name="inputBox" TextChanged="OnTextboxTextChanged" />
    </DockPanel>
</Window>
