Hi,
As far as I know, there are two possible ways to remove a view from your Region, both of which are correct:
You could find more information about this in the following section of the Prism documentation:
Hope this helps,
Federico Martinez
http://blogs.southworks.net/fmartinez
As far as I know, there are two possible ways to remove a view from your Region, both of which are correct:
- Use the Remove method on a Region passing the view you want to remove as a parameter (as you are already doing)
-
Make your views implement IRegionMemberLifetime and change the KeepAlive property to return false. This way, next time you want to remove a view, you could call the Deactivate method instead, so your view will be first deactivated and then, since KeepAlive is set to return false, removed.
You could find more information about this in the following section of the Prism documentation:
Hope this helps,
Federico Martinez
http://blogs.southworks.net/fmartinez