M
M
Maronus2014-10-17 22:31:15
C++ / C#
Maronus, 2014-10-17 22:31:15

Why doesn't XAML see the class?

I open the MVVM Light Toolkit base project and see the following error.
8f42f2816e164828ac187f18febde90b.PNG
This happens if you specify any of your own classes, converters, and so on. Moreover, the studio perfectly auto-completes the names of these classes, but the compiler swears.
Not a critical error, the project is going and working, but I would like to understand what's the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Skogorev, 2014-10-17
@EnterSandman

Oh, I struggled with this for a long time. It helps restarting the aircraft, transferring files to a new project, something else. Fuck it you will understand why it behaves like that

A
Alexey Buraikin, 2014-10-21
@bstdman

Solution for your problem:

<Application.Resources>
        <ResourceDictionary>
           <vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True"
                                 xmlns:vm="clr-namespace:e3Shell.CableConnectionTable.ViewModel" />
        </ResourceDictionary>
    </Application.Resources>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question