Cleanup CompositeCommand Registrations

Topics: Prism v2 - WPF 3.5
May 28, 2009 at 6:31 PM

I'm looking for guidance on cleaning up CompositeCommand registrations when a view is removed from a region.  I've added a region adapter behavior based on an interface called IDestroyedAware which works similar to IActiveAware.  It fires and event on a view just before it is removed from a region giving me the opportunity to cleanup any command registrations that I have made with regard to the destroyed view.  I'm wondering if anyone has another/better approach to dealing with this issue.