Prism 5 WPF XAML designer error "Your views must implement IView"

Topics: Prism v2 - Silverlight 3
Jun 5, 2014 at 10:21 PM
Edited Jun 5, 2014 at 10:24 PM
I am learning how to use Prism 5 with WPF. Whenever I open a View in the Visual Studio 2013 (with update 2) XAML designer, I get an error message:
"Your views must implement IView"
a squiggly appears under the code:

This is true even though my views implement IView.

You can experience this problem for yourself in the Prism 5 sample "MVVM Quickstart" (BasicMVVMQuickstart_Desktop.sln) when you open MainWindow.xaml. Although it compiles and runs ok.

I cannot figure out what is causing this error. This designer error doesn't go away, even if I edit the sample code in MainWindow.xaml.cs to explicitly implement IView:
public partial class MainWindow : Window, IView

How can I get this designer error to go away?

P.S. This forum needs a "Prism V5 - WPF" topic.

P.P.S. Many thank to everyone that creating Prism 5 and it's excellent documentation.
Jun 6, 2014 at 5:37 AM
I get the same thing, but it still compiles and runs. Until VS fixes this don't be too concern about it.
Jun 13, 2014 at 5:07 PM
Edited Jun 13, 2014 at 5:09 PM

This is a known issue with the designer and Prism 5 when using the ViewModelLocator and a view is opened. As VCDeveloper mentioned this shouldn't generate any issue at compilation time.

If you want, go ahead and create a new Work Item for this so the p&p team can consider this for future releases.

May 4, 2015 at 2:59 PM
Edited May 4, 2015 at 3:03 PM
Looks like it is being tracked here

and here (with better explanation of root cause)
May 4, 2015 at 4:46 PM
We have already fixed this in Prism 6, which is in work at its new home