View notification when using AllActiveRegion

Topics: Prism v4 - WPF 4
Oct 19, 2011 at 7:51 PM

When using AllActiveRegion in desktop application

For an accordion region adapter

What would be a good way to get notification when the view got focus

Meaning user select the accordion item of that view?

Thanks in advance

Developer
Oct 20, 2011 at 1:57 PM
Edited Oct 20, 2011 at 5:12 PM

Hi,

Since the AllActiveRegion keeps all its views as active, its ActiveViews collection should not change when one of your views inside the accordion gets focus, so in this case it seems that it won't be useful to hook to that event.

Therefore, (assuming you're referring to the WPF Toolkit's accordion control), you could hook to its SelectionChanged event, which, based on my understanding, should be raised each time you switch the "active" element inside the accordion.

I hope you find this helpful.

Guido Leandro Maliandi 
http://blogs.southworks.net/gmaliandi