WindowRegionAdapter Activated event

Mar 5, 2009 at 7:48 PM
In the <Window> description of shell.XAML, I have added  

<Window
    xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cal = "http://www.codeplex.com/CompositeWPF"
    x:Class = "myCenter.Shell"
    Title = "MyProject"
    WindowStartupLocation = "CenterScreen"
    WindowState = "Maximized"
    cal:RegionManager.RegionName = "FloatingWindowRegion"
    >

I need to be able to to detect which floating region is active.  So if the user has three floating window instances, I need to detect which on is active and take action when that happens.

How can I tie into the "Activated" event for the windows that will be created when I add a view to the "FloatingWindowRegion"?

Thanks tons.
Jun 19, 2009 at 5:15 PM
Edited Jun 19, 2009 at 5:16 PM

My answer is to extend/replace the WindowRegionAdapter to use my own Window class extended from the common window class.