Thank you for replying.
I am glad that you have found a way to activate a window according to your requirements, also the solution seems perfectly fine.
Do not hesitate to let us know, should you have any questions.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.