I'm attempting to implement IActiveAware in a prism based project in order to have a well designed means of finding out which is the active view at any given point in time. I've looked through all of the quickstarts that come with the Prism code, I've
checked the PrismTrainingKit (http://prismtk.codeplex.com/), I've searched through this discussion board and finally off into the web at large, and am amazed to have yet to find an example of someone actually implementing IActiveAware.
The most complete explanation I've found thus far is on Brian Noyes' blog: http://www.softinsight.com/bnoyes/2009/12/08/DetectingTheActiveViewInAPrismApp.aspx --- And this is what I've tried to implement in my own project, however, the IsActive
property is definitely not changing as views are brought in and out of sight.
My first question is: Why does it seem to be such an unused feature? Are there issues? Does it not work as well as it should, or is it just extremely difficult to implement? Definitely the biggest surprise was that none of the sample
code that comes with prism seem to use IActiveAware.
My second, and much more important question is: Does anyone know of a sample, and hopefully an accompanying tutorial for using IActiveAware to detect active views of a prism based application? I think I might be able to piece things together,
if I could see it working properly.
If anyone can point me in the right direction on this, I would be extremely grateful... Thank you so much for taking the time to read my questions, and thanks in advance for your insight. =)