The Model View ViewModel (MVVM) is an architectural pattern used in software engineering that originated from Microsoft as a specialization of the presentation model design pattern introduced by Martin Fowler.
1
vote
1answer
106 views
Checklist for coding MVVM web application [duplicate]
We are a small team working on a web application using MVVM design pattern using technologies like .NET, Knockout and HTML. I am trying to come up with a code review checklist for this, so that my ...
1
vote
2answers
161 views
Why DependencyProperties and not native language support?
With advent of WPF and MVVM Microsoft introduced DependencyProperties and INotifyPropertyChange interface to provide a way to implement the "reactive" approach used with those technologies.
Sadly ...
4
votes
0answers
128 views
Should MVVM ViewModel inject an HTML template for default view?
I'm working on web application design that includes Knockout.js and have an overall MVVM question: Does it make sense for the ViewModel to automatically inject a default HTML template (pulled from ...
0
votes
2answers
193 views
What is this variation of MVC in JavaScript?
I am working on sorting out my Javascript code. Currently I have views implemented without any Model or collection. Now I working on separating Model from View. So for this transformation, I am ...
0
votes
1answer
108 views
Should code-behind in WPF be considered part of the view?
I've read plenty of articles around different patterns in use with WPF and this is something I've yet to understand: should a code-behind file be considered part of the view? As a consequence, should ...
6
votes
3answers
354 views
MVVM Clarification
We are about to write our first WPF application and are becoming familiar with the MVVM pattern. We've built many Winform applications and have an architecture that has been very successful for us. ...
1
vote
2answers
449 views
How to organize MVVM files in solution
I'm fairly new to the MVVM concept but like a lot of the flexibility it gives me so far. However, I'm struggling to find a good way to manage my code. I have several classes that are just sitting in ...
0
votes
0answers
162 views
Are both the EventAggregator used by ViewModel and Domain Event used by Model the same thing?
My initial doubt was should the Model classes in an MVVM use the EventAggregator or the traditional delegates in C# for events. I searched around and read about the Domain Events. It seems to me that ...
3
votes
2answers
231 views
WCF service as a proxy for publishing real-time data to a WPF/MVVM clients
I've been tasked with creating a dashboard application to show real time updates for our servers. The raw data comes in from an XML file on our intranet which I need to parse and present to the user.
...
1
vote
1answer
60 views
For a front-end application broken down in a MV* manner, should I have models dedicated to UI logic?
I am not talking about simple UI logic like clicking a button directs you to another page, but where one action may result in several different of behavior depending on current application state, and ...
3
votes
1answer
203 views
Distinguishing between UI command & domain commands
I am building a WPF client application using the MVVM pattern that provides an interface on top of an existing set of business logic residing in a library which is shared with other applications. The ...
2
votes
0answers
119 views
What is the good way of sharing specific data between ViewModels
We have IAppContext which is injected into ViewModel.
This service contains shared data: global filters and other application wide properties.
But there are cases when data is very specific. For ...
5
votes
1answer
364 views
Are all View Models supposed to be accessed through the Main View Model in MVVM?
I am currently working on a WP8 application. My current design is to have each view bind against a specific view model directly.
Looking through the samples though, it seems that another way is to ...
1
vote
1answer
174 views
Is there a clean separation of my layers with this attempt at Domain Driven Design in XAML and C#
I'm working on an application. I'm using a mixture of TDD and DDD. I'm working hard to separate the layers of my application and that is where my question comes in.
My solution is laid out as ...
2
votes
2answers
668 views
Hierarchical View/ViewModel/Presenters in MVPVM
I've been working with MVVM for a while, but I've recently started using MVPVM and I want to know how to create hierarchial View/ViewModel/Presenter app using this pattern.
In MVVM I would typically ...
1
vote
2answers
332 views
How do I know if I'm violating MVVM with WPF?
I was recently grabbing an auto generated TreeViewItem from a nested TreeView node in WPF, and I was using ItemContainerGenerator to get it in code behind. Then I thought to myself I'm certainly ...
5
votes
4answers
896 views
How to make creating viewmodels at runtime less painful
I apologize for the long question, it reads a bit as a rant, but I promise it's not! I've summarized my question(s) below
In the MVC world, things are straightforward. The Model has state, the View ...
4
votes
1answer
106 views
Contract / Project / Line-Item hierarchy design considerations
We currently have an application that allows users to create a Contract. A contract can have 1 or more Project. A project can have 0 or more sub-projects (which can have their own sub-projects, and so ...
5
votes
3answers
804 views
MVVM - child windows and data contexts
Should a child window have it's own data context (View-Model) or use the data context of the parent? More broadly, should each View have its own View-Model? Are there are any rules to guide making ...
3
votes
1answer
1k views
WPF, MVVM, EF, POCO guidance required on simple architecture
(sorry for my poor english)
I am developing a application using WPF, EF Code First using MVVM (Caliburn.Micro).
It should be used mostly to CRUD work. I created a BaseViewModel<T> class from ...
9
votes
3answers
2k views
MVVM, DDD, and WPF Layered Application Project Structure Guidance
I am trying to setup my application's structure in VS and I want to "try" and future proof it to a reasonable level. This application will be a WPF re-write of an old Winform app that had followed no ...
1
vote
1answer
118 views
Add complex customization to form or create two forms?
I'm working in a WPF application that both imports and exports delimited text files. At both ends, there is a UserControl which encapsulates some logic about delimiter configuration. It has some ...
5
votes
2answers
263 views
Given the presentation model pattern, is the view, presentation model, or model responsible for adding child views to an existing view at runtime?
I am building a Flex 4 based application using the presentation model design pattern. This application will have several different components to it as shown in the image below.
The MainView and ...
5
votes
1answer
219 views
wizard-like data collection implementation help (next, next, finish)
I'm beginning to build an interface for our field techs to close out work orders and we have many different required paper forms for different customers. I had hoped to build a system where i can set ...
2
votes
1answer
92 views
How to verify the client's view is consistent with the remote model?
i'm designing a client-server system via web broswser and i have this problem:
I send the data to the client via JSON, then the javascript view shows the stuff. Then the user takes actions and ...
2
votes
1answer
122 views
What conventions or frameworks exist for MVVM in Perl?
We're using Catalyst to render lots of webforms in what will become a large application. I don't like the way all the form data is confusingly into a big hash in the Controller, before being passed to ...
4
votes
1answer
518 views
Which notification pattern is preferable?
I'm working on a view model for a view that presents a dialog with export options. The user selects options then clicks Export. When the view model completes the Export, the calling view model ...
1
vote
1answer
263 views
Need suggestion for Mutiple Windows application design
This was previously posted in StackOverflow, I just moved to here...
I am using VS2008, MVVM, WPF, Prism to make a mutiple window CRM Application.
I am using MidWinow in my MainWindow, I want
Any ...
1
vote
2answers
753 views
Creating controls dynamically in the code-behind or ViewModel?
Right now I'm working migrating an app I made entirely using code behind to MVVM and had a question on where I'm supposed to be creating controls dynamically.
Basically I have a web service that ...
0
votes
1answer
195 views
Is a silverlight UserControl considered a view?
So far I have been implementing MVVM in my silverlight app pretty well, I just had one question. I have a few User Controls that I made and was wondering if they should be placed in the Views folder ...
4
votes
3answers
945 views
How to use a MessageBox using the MVVM pattern?
I am implementing a UI application using the MVVM design-pattern.
The thing is, sometimes when you detect that something is wrong with data that was inputted by the user, you'd like to notify him ...
4
votes
2answers
598 views
MVVM Reporting App Approach ? Data Access Layer?
I'm trying to follow the MVVM pattern in a reporting / statistics application that I'm making in C# / WPF.
I have made many model classes to hold properties as a starting point. Some of these models ...
2
votes
1answer
577 views
How do you do to create the ViewModel part of your MVVM designs?
Sometimes, when I plan to create a program using this architectural pattern, I've got a lot of difficulties when I'm in the View Model phase.
I'm using WAF Framework to develop this architectural ...
6
votes
5answers
1k views
Should we bind view to a model property or ViewModel should have it's own..?
I am starting a project with following technical environment :
.Net 4.0, Entity Framework 4.0, WPF with MVVM Architecture
I saw lots of examples on the net, some books with this environment. In some ...
12
votes
3answers
4k views
Who should control navigation in an MVVM application?
Example #1: I have a view displayed in my MVVM application (let's use Silverlight for the purposes of the discussion) and I click on a button that should take me to a new page.
Example #2: That same ...
3
votes
2answers
820 views
What are the pros and cons of the MVVM architecture?
In class today we were introduced to the MVVM architecture for Silverlight/WinPhone/WPF; it looks nice for big projects, but what are your thoughts on MVVM?
What are the pros and cons?
I want to get ...
11
votes
4answers
1k views
Are value converters more trouble than they're worth?
I'm working on a WPF application with views that require numerous value conversions. Initially, my philosophy (inspired in part by this lively debate on XAML Disciples) was that I should make the view ...
3
votes
1answer
2k views
Trying to learn how to use WCF services in a WPF app, using MVVM
We're working on a major re-write of a legacy VB6 app, into a WPF app. I've written several WCF services, which are meant to be used with the new WPF app. We want to use the MVVM design pattern to ...
4
votes
1answer
345 views
When should the presentation model design pattern include one or more controllers?
I have been researching the usage of the Presentation Model design pattern for an application I am preparing to build. The specific technology I will be using is Flex though I doubt that it matters ...
3
votes
2answers
481 views
Examples of MVVM adoption outside the Microsoft community?
IS MVVM getting any kind of traction outside the Microsoft community? Within Silverlight this is a non-issue, but for other technologies, like JavaScript it surely is: For instance Knockout.js is a ...
2
votes
3answers
1k views
Lists & Collections in MVVM - which approach to take?
I'm currently working on a Silverlight app using Caliburn.Micro.
At present, we have Views (eg: PeopleView) and View Models (eg: PeopleViewModel) that equate to 'pages' of the application.
...
3
votes
1answer
314 views
MVVM light Communication
I am working on a large MVVM application. I am using the MVVM light toolkit for this. The application is like a web browser with back and forward buttons. The main view is an user control. I laid the ...
1
vote
2answers
2k views
Silverlight 5 and MVVM. Do I really need other frameworks? What is the best way for rapid development?
I've been reading and watching videos on MVVM and Silverlight.. I'm pretty new to Silverlight but not new to .NET. Interesting that I used MVVM in my WPF apps without knowing that it's MVVM. I was ...
7
votes
2answers
437 views
How can I “get in the know”?
My company posted a job listing to get me a helper. A recruiter called me today and all he kept saying was "MVC this Entity Framework that..." - He sounded shocked when I said the project uses ...
28
votes
9answers
7k views
When does implementing MVVM not make sense
I am a big fan of various patterns and enjoy learning new ones all the time however I think with all the evangelism around popular patterns and anti-patterns sometimes this causes blind adoption.
I ...
4
votes
3answers
2k views
MVVM or MVC? Want to use the same set of classes for WPF and ASP.NET
I am a newbie in terms of Design Patterns. I just started learning MVC when I am hearing a new buzz, MVVM.
I want to learn the insights of both of these by redesigning an old inventory and invoicing ...
0
votes
2answers
249 views
Multi sourced search in WPF app
If Iām using the MVVM pattern ā this one for my WPF application
And my project requires a search function on different sources ā say clients, accountants, cases.
What would be the best way to go ...
3
votes
4answers
1k views
Has the MVVM pattern been adopted wildly in real world Silverlight projects?
MVVM pattern is a hot word recently and I am planning to learning and refactor my existing project into this pattern. I have no experience and foresight of the potential risk.
Have you guys really ...
6
votes
3answers
457 views
What are the rules for coupling a ViewModel and a View in the MVVM pattern?
So given the Separation of Concerns, how coupled should the View and ViewModel be?
For example, I want the visibility of a Control in the View to be databound (databinded?) to a flag in the ...
4
votes
4answers
337 views
What determines when an application requires mvvm?
I'm developing mobile applications for Windows Phone 7. This application calls some web services and occasionally sends responses out via web services. I recently started looking into MVVM and noticed ...