The region manager does not contain the ContentRegion #2358
Unanswered
ErwinDraconis
asked this question in
WPF
Replies: 1 comment 3 replies
-
This is telling you that you are trying to add views to the region before it has been created/initialized. It's too early. I'm not sure how you have your app architected, but you'll need to ensure the regions exist before trying to add to them. Or just use IRegionManager.RegisterVIewWithRegion and it will add the view automatically when the region becomes available. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Hier is my setup based on the code examples from PRISM repo :
XAML :
<ContentControl Grid.Column="0" Grid.Row="0" Prism:RegionManager.RegionName="ContentRegion" />
C# :
`readonly IContainerExtension _container;
readonly IRegionManager _regionManager;
i get this error :
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions