我感觉我离MVVM越走越远。。。。有点不是MVVM了
主窗口Ctrl+Q关闭程序 T工具窗口
<Window.Resources>
<!-- 退出系统热键-->
<RoutedUICommand x:Key="CloseCommand" Text="Button Click"/>
<!-- 工具箱热键-->
<RoutedUICommand x:Key="ToolBarCommand" Text="Button Click"/>
</Window.Resources>
<Window.InputBindings>
<KeyBinding Gesture="Ctrl+Q" Command="{StaticResource CloseCommand}"/>
<KeyBinding Key="T" Command="{StaticResource ToolBarCommand}"/>
</Window.InputBindings>
<Window.CommandBindings>
<CommandBinding Command="{StaticResource CloseCommand}"
CanExecute="CommandBinding_CanExecute1"
Executed="CommandBinding_Executed1"/>
<CommandBinding Command&