Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5984383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:22:05+00:00 2026-05-22T22:22:05+00:00

from the design point of view, I have a complex GUI, what is the

  • 0

from the design point of view, I have a complex GUI, what is the recommended granularity for cutting the GUI (Window) into ViewModels, UserControls and DataTemplates. Let’s assume I have a window showing list of entities in DataGrid, then some filters in ComboBoxes, some detail…

How many ViewModels should I create? …and DataTemplates and UserControls.

Thank you very much for a good WPF/MVVM design pattern idea.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:22:06+00:00Added an answer on May 22, 2026 at 10:22 pm

    Although your question is not very clear, I’ll try to answer it. The number of ViewModels is… just up to you.

    My personal approach is to separate my UI into many different custom UserControls, with one ViewModel per control. It allows me to have a crystal-clear architecture with a lot of smart controls designed for one task each. As an example, for my manager application, I have:
    – One UserControl designed to list all the users
    – Another one designed to create or edit a user
    – and one more designed to monitor user’s activity.

    Separating your application into different task-driven UserControls will help you having:

    • A more easily understandable architecture,
    • A more compact XAML, easier to enhance
    • A chance not to mess with too many Bindings flying everywhere.

    About DataTemplates, again, I usually separate the general templates into different ResourceDictionaries.

    Anyway, there is no “right way” neither “wrong way” to do, I think there is just “your way”. For me, the more granular my code is, the more understandable it will be, assuming that the components are not small enough to be useless. One separated component should be designed for one main goal. Once you’ve done this separation, MVVM will help you a lot!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this GUI screen shots from the design team which i needs to
From a design point of view, can I say that Interfaces are used to
I have a XAML file that I exported from Expression Design. I would like
I have been set a project from school to design snake in VB.Net but
i have a design issue regarding sending user data from a mobile phone app
I have an entry-point View with a tab control. Each tab is going to
This is a design question. I have data that needs to go into an
This question is coming from a javascript point of view, but it certainly could
So i'm comming from table design webpages and thought i'd give div and CSS
What is the concept of Sharding from Database Design perspecitve ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.