I am having trouble getting SyncActiveState to work. The Prism 4.1 readme states simply:
"To support scenarios where a parent view contains scoped regions, the regions and views within that scope may need to be notified when the parent view becomes active. To handle this the SyncActiveStateAttribute can be applied to a View or ViewModel to ensure notification of the views (or view models) within the scoped regions."
[SyncActiveState]
public class MyViewModel : NotificationObject, IActiveAware
{
However, I am having trouble getting this to work. I don't think my problem is the known bug discussed elsewhere, namely, that the parent view must be active when the child view is added to its region. I believe my problem is in defining the correct region scope. Does anyone have a "hello world" complete example on how to use SyncActiveState? This would be a big help to me. Thanks to all.
"To support scenarios where a parent view contains scoped regions, the regions and views within that scope may need to be notified when the parent view becomes active. To handle this the SyncActiveStateAttribute can be applied to a View or ViewModel to ensure notification of the views (or view models) within the scoped regions."
[SyncActiveState]
public class MyViewModel : NotificationObject, IActiveAware
{
(...)
}However, I am having trouble getting this to work. I don't think my problem is the known bug discussed elsewhere, namely, that the parent view must be active when the child view is added to its region. I believe my problem is in defining the correct region scope. Does anyone have a "hello world" complete example on how to use SyncActiveState? This would be a big help to me. Thanks to all.