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

  • Home
  • SEARCH
  • 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 7920049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:04:25+00:00 2026-06-03T16:04:25+00:00

I am working on graph editor using WPF and I would like to know

  • 0

I am working on graph editor using WPF and I would like to know how I can design this system with help MVVM pattern.

There 3 parts:

  1. Model:
    class Graph with 2 properties:public List States and public List and Add/Edit/Remove States/Transitions methods

  2. ViewModel
    class GraphVM with 2 properties:public List States and public List and Add/Edit/Remove States/Transitions methods

  3. View

Is it a good approach or should I implement separete VMs for States and Transitions?

  • 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-06-03T16:04:27+00:00Added an answer on June 3, 2026 at 4:04 pm

    Whilst it depends on the exact functionality in your UI, I would suggest that VMs for each states and transitions would be a good idea regardless. Generally you’ll find yourself needing them sooner or later, so you may as well just create them up-front. The alternative is for your view to bind directly to your model, which not only creates a tight coupling that may be difficult and time-consuming to break later, it also inhibits your ability to add UI-specific behaviors on top of them (such as selection and drag+drop).

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

Sidebar

Related Questions

I am working on finishing up a graph generated using ggplot2 like so... ggplot(timeSeries,
I am working on this small project where I'd like to generate the call
I am working on an interactive WPF graph/tree tool and have nodes and links
I'm working with another directshow graph and can't seem to wrap my head around
I am working in a graph using the great framework core-plot (in desktop OSX).
I'm currently working on an interesting graph problem, I can't find any algorithms or
I'm working on an implementation of a live-updating line graph using gRaphael which is
I tried to grab my Facebook ID using open graph API. It is working
I am working on a graph in WPF, in each section there are thousands
I am working on a new graph for my site, using CSS3/HTML5 (canvas tag).

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.