Latest version of prism 8.0.0.1909 exception on contentcontrol region for both framework 4.7 and .Net 5.0 applications? #2382
Unanswered
stevensrf11
asked this question in
WPF
Replies: 2 comments 2 replies
-
Well I found the problem for the .Net Framewrok, |
Beta Was this translation helpful? Give feedback.
2 replies
-
See #2389 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a WPF .Net 5 application. The WPF application is identical to the Sample 2 Region demo which is a .Net Core 3.1 Application. When running the .Net WPF application and exception is thrown saying the region cannot be created for the ContentControl.
I made a similar WPF .Net Framework 4.7 Application using the same version of Prism and the same exception was thrown.
Has anyone else heard reports on this happening from anything ?
Strange thing is if I go Sample2 Region demo and change it to a .Net 5 application is runs ok. The exception does not occur.
And if I create a .Net Core 3.1 Wpf application and chave it to a .Net 5 application it also runs ok
InnerException {"An exception occurred while creating a region with name 'ContentRegion'. The exception was: System.Collections.Generic.KeyNotFoundException: The IRegionAdapter for the type System.Windows.Controls.StackPanel is not registered in the region adapter mappings. You can register an IRegionAdapter for this control by overriding the ConfigureRegionAdapterMappings method in the bootstrapper.\r\n at Prism.Regions.RegionAdapterMappings.GetMapping(Type controlType) in G:\prism folders\prism8net5\Prism-master\src\Wpf\Prism.Wpf\Regions\RegionAdapterMappings.cs:line 80\r\n at Prism.Regions.Behaviors.DelayedRegionCreationBehavior.CreateRegion(DependencyObject targetElement, String regionName) in G:\prism folders\prism8net5\Prism-master\src\Wpf\Prism.Wpf\Regions\Behaviors\DelayedRegionCreationBehavior.cs:line 132. "} System.Exception {Prism.Regions.Behaviors.RegionCreationException}
Beta Was this translation helpful? Give feedback.
All reactions