Prism v4 drop 9 - error in XAML defining regions

Topics: Prism v4 - WPF 4
Oct 13, 2010 at 9:59 AM

Whilst working through the hands-on lab "Get Started with the Prism Library", I follow the instructions to add a region in the Shell.xaml file...

1) Add the Prism namespace:


2) Replace the Grid with an ItemsControl and define a region:

<ItemsControl Name="MainRegion" prism:RegionManager.RegionName="MainRegion"/>

But this throws up the error "Error 2 The attachable property 'RegionName' was not found in type 'RegionManager'."


Any ideas what's wrong?

Oct 13, 2010 at 10:40 AM

Ok, I continued with the lab and realised that I needed to add the references to the prism DLLs. Once I had done this the error went away.

As a tutorial, I think it needs to include the step "Add references to the Prism DLLs ..." as people tend to follow tutorials verbatim.