Skip to content

Need refactoring: Creating Views in ViewModel is bad #1213

@M-L-Ml

Description

@M-L-Ml

There are places in ViewModel classes where creating related Views happens.
e.g. here

View = new Views.CheckoutCommit() { DataContext = this };

From what I know , creating Views in ViewModel is against guidelines of MVVM .
Don't understand the necessity to do this way.

There are other ways.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions