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

后端 未结 7 1309
[愿得一人]
[愿得一人] 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条回答
  • 2020-12-14 10:18

    I had a similar problem with a user control resource.
    I added this in my usercontrol xaml code:

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/GinaControls;component/Resources/GinaControlsColors.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    

    Where GinaControls is the namespace where the control class is declared and /Resources/GinaControlsColors.xaml is the project folder and xaml resource file name.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题