In the project I use the resource file.

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:SH2.Model.Repairs" xmlns:converter="clr-namespace:SH2.Converters"> <!-- Конвертеры --> <converter:TypeToVisibleConverter x:Key="TypeVisibleConverter" /> <converter:TreeHierarchyConverter x:Key="HierarchyConverter" /> <converter:ValueToStylePaneConverter x:Key="ValToStyleConverter"/> 

The error "TypeToVisibleConverter name does not exist in the namespace ...", and so with all connections. The code is working, because in another project, exactly the same code and everything works.

 <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/SH2;component/Resources.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> 

Here an error is issued that an error occurred while searching the resource dictionary, replacing it with another project (SH1), it finds everything, only there are no references to the assembly of another project. Tell me, what could I forget to indicate here?

  • Are there any other mistakes in the project? This may be an induced error. Make sure the rest of the project compiles without problems. - VladD
  • Yes, one mistake was in another file, corrected, earned. Thank! - Maxkb24
  • Ok, then I'll make out as an answer - VladD

1 answer 1

Ensure that there are no errors in the rest of the project.

The point is that XAML is compiled into C # code (partially) on the second compilation pass. If the first pass (normal compilation of C # files) was not successful, the code is not generated, and the old code produces a false error.

Thus, your error is likely induced. If so, bring the rest of the code to a compiled form, the error should disappear.