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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -