tags:

views:

41

answers:

1

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.

+1  A: 

Duplicate of -

Recommended WPF Project Structure?

http://stackoverflow.com/questions/3423033/recommended-wpf-project-structure/3423811#3423811

akjoshi
It is not an exact duplicate but I am happy with the info provided in that thread... Thanks.
Johan