Hi I am quite new to WPF. I like the MVVM (Model-View-ViewModel) pattern. My current project has the following type of file/namespace structure:
Clients
Controls
ClientNameControl.xaml
ClientSurnameControl.xaml
Views
ClientCapture.xaml
Models
Client.cs
ViewModels
ClientViewModel.cs
And so forth. With each domain object like clients,products ect each having the structure above. Controls are used to compose views, very generic controls are split out into separate control projects and referenced in the project. My question is if this is a useful structure? All the examples of MVVM seem to take the following approach to file/namespace hierarchy:
ViewModels
ClientViewModel.cs
ProductViewModel.cs
Models
Clients.cs
Products.cs
Views
CliewntView
ProductView
Any comments would be appreciated. Thanks in advance :)
UPDATE: I have been looking around and the below links provided useful information. I am going to structure my project the more traditional way.