当我执行路由命令时,假设:
ApplicationCommands.Undo.Execute(null, this);
WPF 做了一些魔术来找到CommandBinding它在其上执行ExecutedRoutedEventHandler.
有没有办法获得对CommandBinding将要执行的(或至少是处理程序)的引用?
有时调试知道谁在处理命令会很好。
当我执行路由命令时,假设:
ApplicationCommands.Undo.Execute(null, this);
WPF 做了一些魔术来找到CommandBinding它在其上执行ExecutedRoutedEventHandler.
有没有办法获得对CommandBinding将要执行的(或至少是处理程序)的引用?
有时调试知道谁在处理命令会很好。