Skip to content

The first MVVM example has some problems #59

@cbaugher

Description

@cbaugher

In step 3 it says to:

"Add the following code to the MainWindowViewlModel class in MainWindowViewModel.cs."

I think that should be MainViewModel class in MainViewModel.cs. There is no MainWindowViewModel class or .cs file.

In step 4:
x:DataType="vm:MainWindowViewModel"

should be:
x:DataType="vm:MainViewModel"

Also, there needs to be:
xmlns:views="clr-namespace:BasicMvvmSample.Views"

somewhere before the Title line.

MainWindowViewModel is used in a few other places as well. Changing it to MainViewModel makes all the compile errors go away.

Unfortunately I'm now getting an error that says "A project with an Output Type of Class Library cannot be started directly." I understand what it's saying but I don't know how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions