azamsharp
azamsharp

Reputation: 20066

MVVM WPF Dividing the Views into Smaller Views

How do you go about dividing the views into smaller views. Let's say I have a Customer object and each Customer can have Orders. Should I create a single view CustomerOrderView or should I create 3 views CustomerOrderView, CustomerView, and OrderView?

Upvotes: 0

Views: 214

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292415

Create a view (or several views) for each ViewModel. In the CustomerView, you can then use OrderViews to display the orders in a ItemsControl

Upvotes: 1

Related Questions