Unloaded Event

Topics: Prism v4 - WPF 4
Dec 14, 2015 at 9:24 AM
When navigating between views is it right for the unloaded event of the user control to fire? The reason for asking is the view and the hooked up VM stay in the same state
Dec 14, 2015 at 11:52 AM
When using region navigation, the region constructs the view the first time you navigate to it, and holds on to that reference. So the instance sticks around, but it does go through a full Load/Unload event cycle each time it activates and deactivates since those events are more related to the view being added to and taken out of the visual tree.

FYI - in the future it would be better to ask general Prism questions here: http://stackoverflow.com/questions/tagged/prism

Now that Prism is open sourced with a new home here: http://github.com/prismlibrary, there are few people monitoring this discussion list any more.
Dec 14, 2015 at 11:56 AM
Ok, thanks Brian