c# - Prism ViewLocator : How to fix "Your views must implement IView" -


i'm starting wpf application. use prism , viewlocator.

it implies when i've view has have viewmodel bound it, i've indicate on mvvm:viewmodellocator.autowireviewmodel="true"and make implements iview interface, did, in code behind.

in small test application, every thing works fine, viewmodel, set datacontext of view.

the issue everyplace i'm using mvvm:viewmodellocator.autowireviewmodel="true", error in "error list":

"your views must implement iview"

from understanding, issue xaml editor doesn't seems check if code behind class implement interface.

so how avoid error?

in fact prism 6, has been released yet, remove need of having iview, don't have message anymore :)


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -