代码之家  ›  专栏  ›  技术社区  ›  Stefan

查找RoutedEvent的目的地

  •  3
  • Stefan  · 技术社区  · 15 年前

    ApplicationCommands.Undo.Execute(null, this);
    

    CommandBinding 在其上执行 ExecutedRoutedEventHandler .

    有没有办法找到 (或者至少对处理程序)将被执行的?

    有时了解谁在处理命令对于调试来说是件好事。

    1 回复  |  直到 15 年前
        1
  •  0
  •   klm_    15 年前

    您可以尝试在以下位置检查CommandBinding列表:

           UIElement
           ContentElement 
           UIElement3D
    

    推荐文章