My application has certain errors in its error field during development to make a resource dictionary with it. For example, in my main window, the resource dictionary is called as follows:
<Window.Resources> <ResourceDictionary Source="Resources.xaml"/> </Window.Resources>
I get blueline on the middle line: “An error occurred while looking up the resource dictionary“ Resources.xaml. ”However, Resource.xaml is located in the root folder of the project, as well as MainWindow.
I know that there are similar questions like this, however the answers;
"Make sure Resources.xaml is set to action: page"
"Make sure you reference Resources.xaml correctly"
did not help me.
I have an additional problem in that in the resource dictionary I have errors telling me:
the name ProductDatabaseViewModel does not exist in the namespace "clr-namespace:gate2software.ViewModels"
and similarly;
the name ProductDatabaseView does not exist in the namespace "clr-namespace:gate2software.Views"
in the next xaml;
<DataTemplate DataType="{x:Type vm:ProductDatabaseViewModel}"> <vw:ProductDatabaseView /> </DataTemplate>
In fact, both are available exactly where they are claimed.
Any suggestions on any of my two problems are welcome.
namespaces visual-studio-2013 wpf resourcedictionary
Lewis heslop
source share