MVVM Light + Blend designer view error: Cannot find resource named 'Locator'.

后端 未结 7 1324
[愿得一人]
[愿得一人] 2020-12-14 09:31

The application runs fine but i could not see my design in the designer view.

It says Cannot find resource named \'Locator\'. Obviously, i did not change anything i

7条回答
  •  旧时难觅i
    2020-12-14 09:59

    Make sure the Blend has opened the entire solution and NOT just the single project containing the views. I was right-clicking in Visual Studio and selecting Open In Expression Blend. To my surprize, Blend could not find the solution file, so it only opened the single project.

    When I realized this, I launched Blend directly, pointed it to the solution file, and then Blend was able to find the ViewModelLocator in my view.

提交回复
热议问题