locked
About snoop RRS feed

  • Question

  • Hi,

    I want to develop an module to realize the function like snoop for WPF.

    How should I do? Please provides me some ideas, such as steps and what need to understand the knowledge, and so on.

    I hope it can be used in Windows Store apps for C#.

    Thanks!

    Tuesday, May 21, 2013 9:24 AM

Answers

  • If you just want to use a similar tool take a look at Xaml Spy. There may also be others the community can point you to. Related but not quite the same thing, look at accessibility tools such as Inspect.exe (included in the SDK)

    To implement yourself you can use the VisualTreeHelper to find which elements exist and reflection to examine those elements. This has to be used from inside the app's process. From outside you can use UI automation to examine the automation tree.

    --Rob

    Tuesday, May 21, 2013 1:21 PM
    Moderator