Child region navigation on a TabItem #2560
Unanswered
buruhazard
asked this question in
WPF
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Prism Team!
So, I made it work. Same as on the Pluralsight course. I found the following:
My
TabViewModel
model have scoped region manager andIActiveAware
. All tabs subscribeb to a event (IEventAggregator
) , when this event fires there is a RegionManager.RequestNavigate("CildRegionOfTheTab", "SomeView") onTabViewModel
, the SomeView depends on the parameter of the event. This navigation sets all theTabViewModel
'sIsActive
to true.Is that how it should be? I fixed the issue with a local variable that saves the current IsActive, and restore it after the navigation.
Best regards,
Zoltan
Beta Was this translation helpful? Give feedback.
All reactions