I am running a WPF application. I am using Prism and its ViewLocator .
This means that when I have a view for which a ViewModel is attached, I have to point mvvm:ViewModelLocator.AutoWireViewModel="True" and make it implement the IView interface that I made into the code behind.
In my small test application everything works fine, I get my ViewModel, it is installed in the DataContext of my view.
The problem is that I am using mvvm:ViewModelLocator.AutoWireViewModel="True" , I get this error in the "error list":
"Your Views Must Implement IView"
As far as I understand, the problem is that the xaml editor does not seem to check if my code implements this interface behind the class.
So how to avoid this error?
c # wpf mvvm xaml prism
J4n
source share