添加 RoutedCommand 注册 Microsoft Corporation 添加注册 RoutedCommand 的代码。 wpfrc Expansion
WindowsBase PresentationCore PresentationFramework System.Windows commandName 替换为 RoutedCommand 的名称。 Routed1 ownertype Control 替换为此代码段要添加到的类的名称。 Window1