Jun 19, 2012 at 1:25 AM
Edited Jun 19, 2012 at 3:11 AM
I have a WPF application (following MVVM). Now I need to create a tool (preferably Commnad app) which will run in the background.
Once my WPF app is launched; I will snoop this running app through my tool and will examine the UI (View) and find out the ViewModel instance of that.
I was thinking to use the Snoop dlls to do that.
But I am not sure how can I do that progrmmatically?
If anyone has already done this then let me know or any idea is welcome.
One more thing to add - the tool I am trying to build is for testing this WPF application. So even if someone has any idea using Coded UI or other tool; then also please let me know.
Actually my tool will load the WPF App; then by inspecting/snooping it's View I will reach out to ViewModel. Using ViewModel; I will write my tests.