The Model-View-ViewModel design pattern, which separates presentation from data and logic.

learn more… | top users | synonyms

1
vote
0answers
20 views

WPF Binding to a Repository with Entity-Framework

I have an MVVM WPF application that will make use (hopefully) with a repository and ...
11
votes
2answers
211 views

Understanding the MVVM concepts and validation of my code

I have been learning MVVM concepts and trying to implement it in my new project. I want to validate my work that I have been doing these past days. I want to know if I follow correctly the MVVM ...
2
votes
1answer
48 views

Implementing ViewModel design pattern using DI in a MVP-VM architecture

Based on this answer: MVVM implementation using C# and XAML, I understand that my ViewModel is some kind of a wrapper for my Model. Being a fan of DI and SOLID principles, I have made my ViewModel ...
2
votes
1answer
66 views

WPF ListView Pagination using MVVM Pattern

A few days ago, I was looking for simple pagination example and I decided to write my own version. It is one of my first apps using MVVM Pattern, so I am not sure I did right. I would appreciate if ...
1
vote
1answer
52 views

Dealing with the need to pass the root view model down to the children

I tend to feel the need in my Knockout applications to pass along a reference of the root view model down to the sub view models. However, I don't like the fact that I then have a dependency that lies ...
8
votes
2answers
223 views

Add or view pattern with MVVM

I have a model called WorkOrder which I want to be able to manage from a single window. The required operations (for now) are only Insert and view, so this is what ...
5
votes
1answer
84 views

Caliburn.Micro nested ViewModels

I am currently developing a small tool intended to help me keep track of the myriad of characters in my Stories. The tool does the following: Load the characters which are currently stored as json ...
6
votes
1answer
130 views

Fat ViewModels for editing images

How should I deal with ViewModels that are "fat"? Or should I just accept it sometimes. Example - one of my ViewModels (editing ...
2
votes
2answers
157 views

Select item of IEnumerable<T> in UI (MVVM)

Please, help improve following code. I have list of users, item of the list has buttons remove (remove user from list) and profile (navigate to user profile). I use ...
1
vote
1answer
124 views

Access View from current/corresponding ViewModel

Sometimes when developing a WPF application, I need to access a certain Window (View) from the corresponding ...
2
votes
1answer
101 views

ViewStateManager for more than just Controls?

Okay - so basically I have a login form that has a couple of 'states' it needs to display (connecting, input credentials, authenticating, invalid credentials, etc...etc...) - in the past I've ...
7
votes
2answers
256 views

Am I handling “spot the missing DLL” right?

I have a .net 4.5 desktop script which has dependencies on some third party libraries (dll's). These libraries are used in my MainWindowViewModel. I need to check ...
2
votes
1answer
81 views

RSS reader and model (logic) layer in practise

I have written a logic part in my app. I'd like to learn best practices, so can you please check my class? This class is a little too big in my opinion, but I have no idea what I should do now. I've ...
4
votes
1answer
94 views

Insert Model object effectively using entity framwork

I have a WPF MVVM Application. I have a Customer Model which is generated by an entity framework (Database first approach) and one CustomerViewModel where I ...
7
votes
1answer
155 views

MV* Pattern for a board game

I have made a small game in Javascript, while simultaneously learn about the ever so popular model view controller. The game is this, there are 3 players(green, purple, yellow) and they have to try ...
2
votes
1answer
205 views

Unit of Work with Generic Repository Pattern MVVM, vol. 4

Continuation of this question: Unit of Work with Generic Repository Pattern MVVM, vol. 3 I have made some changes. The methods GetFeedBySomething() have been ...
2
votes
0answers
134 views

Caliburn Micro communication between list and edit viewmodels

I'm new at Caliburn Micro and MVVM pattern. I create 3 views (with its corresponding viewmodels): AppView ClientsView ...
1
vote
1answer
573 views

MVVM implementation using C# and XAML

I have used INotifyPropertyChanged for both Model and ViewModel. Is it correct? First of all I was trying to use ...
2
votes
1answer
364 views

Unit of Work with Generic Repository Pattern MVVM, vol. 3

Continuation of this question: https://codereview.stackexchange.com/questions/36561/unit-of-work-with-generic-repository-pattern-mvvm-vol-2 I have made some modifications: Implement lazy-loading ...
7
votes
2answers
2k views

Pong game in WPF

This is my first post here and one of my first WPF projects. The game works, but I would like to get some advice regarding what could be done better/differently. I would especially like to find out ...
1
vote
1answer
569 views

Unit of Work with Generic Repository Pattern MVVM, vol. 2

Continuation of this question: Unit of Work with Generic Repository Pattern MVVM I have made some modifications: Interfaces aren't forced to implement IDisposable Removed the finalizers Rebuilt UoW ...
4
votes
1answer
1k views

Unit of Work with Generic Repository Pattern MVVM

I have been writing the application. I meant to implement a repository pattern with Unit of Work. Is it correctly done? Can you make a code review? I use SQLite ...
3
votes
2answers
3k views

WPF Window with different DataTemplates

I have to do a task hard for me and maybe you can help me. I try to design a window dialog to update data from a database view. This database view contains integer, DateTime, string, Time, Boolean ...
3
votes
1answer
346 views

node.js MVVM framework concept

Not sure how subjective this question is however I am looking for a peer review and general feedback on the intuitiveness and scaffolding potential of a framework concept. I have a gist on GitHub ...
1
vote
1answer
2k views

ListView MultiSelect, MVVM and RoutedCommands

As far as I know (and I don't claim to know much about this!), direct binding to ListView.SelectedItems isn't possible in WPF. I've seen work-arounds involving ...
4
votes
2answers
439 views

Converting between data and presentation types

Below is how I'm solving the problem of converting between data and presentation types, I'd like to know if that's a good way to go about it, and if not, what would be a better way to go about it. I ...
1
vote
0answers
78 views

How should my objects be structured for proper MVVM in Knockout?

Question also asked @ Stackoverflow I'm working with knockout and am trying to stay true the MVVM structure and trying to make the objects have that dependency on each other. Here is what I ...
1
vote
1answer
179 views

Efficient strucure for backing data in MVVM

I started learning C# a few months ago (so keep in mind that this is all fairly new to me) and I am working on my first real project (WPF / MVVM). I've received conflicting advice on how to handle my ...
2
votes
1answer
90 views

How best to implement a POCO editor which is split over a number of TabItems?

I am currently working on a project which uses the MVVM pattern. I have a POCO which I want to present in an editor and, because the object is composed from a number of smaller, reusable POCOs, I ...
5
votes
1answer
360 views

Can this reactive code be improved?

I have a view model that I'm migrating to RxUI. It exposes a collection of brokers along with a bool indicating whether there is a market (ie. at least one broker). ...
7
votes
2answers
1k views

ViewModel constructor with many parameters

I have some ViewModels that have a lot of parameters like this one: ...
2
votes
2answers
546 views

MVVM notification messages

I have been looking at a couple of different approaches on how I can notify the UI about messages coming from the ViewModel, and wanted to see if this seemed appropriate or if it is too coupled. (We ...
3
votes
2answers
3k views

Improvements to a ViewModelBase

Every time I go to write an MVVM application (say every 4-6 months) I rewrite my ViewModelBase class. This is for a range of reasons but let's say either I don't ...
3
votes
0answers
515 views

MVVM implementation based on Jason Dolinger's video

I've learned MVVM for a week or so, and I've seen the Jason Dolinger video many times. Step by step, following the Jason Dolinger video, I've created my own application which almost the same to one ...
5
votes
1answer
699 views

View Model Base

I needed to write code in WPF for a client. The application is done with prism (not my decision, they already had people working on it), so I got a sparkling clean new module to work in. Since this ...
5
votes
2answers
2k views

Simple clock view model

I have been trying to wrap my head around MVVM for the last week or more and still struggling a bit. I have watched Jason Dolingers MVVM video and gone through Reed Copsey lessons and still find ...