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

learn more… | top users | synonyms

5
votes
1answer
56 views

WPF application depending on large file

I've got a quite simple WPF application, trying to implement a correct MVVM pattern. The application in itself is simple: one listItem and one textbox + button for searching. On init, the entire ...
11
votes
2answers
487 views

MVVM data binding for a video encoding form

I am creating a C# WPF application. I am intending to bind all of the GUI controls via data binding to my ViewModel, rather than code behind - as per MVVM. I have ...
0
votes
0answers
31 views

ControlContent navigation within wpf mvvm application

I have a wpf&&MVVM application, in which I have a problem in responsiveness: I have a ContentControl to be changed in the click into a menu In The view ...
5
votes
1answer
97 views

Passing a password to a viewmodel

I've got a project I've been working on that connect to a file server and writes some data to a text file. In order to do this I added a textbox for the user to type their username and a passwordbox ...
1
vote
2answers
66 views

MVVM Model modifying data

I’m trying to rewrite one of my projects using the MVVM pattern. I have a feeling though I’ve not done it correctly because I think my Model is too “smart”, it has methods to modify its own ...
3
votes
1answer
34 views

Controlling a Windows Service from a WPF app

I have a WPF Control Panel app, where I'm trying to stay close to an MVVM architecture. The control panel (the "the CP") is for a WCF service ("the Scheduler"), hosted in a Windows Service ("the ...
1
vote
1answer
95 views

Asynchronous method and collection binding

I have a WPF application, in which I'd like to bind a collection to a combobox using an asynchronous method : ...
5
votes
2answers
63 views

The cycle continues - VM's part 4

So, this is my refactored VM: ...
3
votes
1answer
76 views

Using list of tasks to obtain and cache data

I develop Windows Phone App with Prism framework (MVVM). I use data caching. To get data I use proxy service. Proxy service creates two ...
4
votes
1answer
204 views

From event handler to command: on my way to MVVM

I have a WPF C# application that I want to move to a MVVM pattern. My first step is to remove the button click handlers from the code behind of the UI. I've found some examples online and then ...
4
votes
2answers
88 views

MVVM, Navigation, and More - Part 3

This is actually a second follow-up to Correct MVVM format, but I have made different changes. This is my ViewModel.cs class for my MainPage.xaml: ...
4
votes
1answer
67 views

Reacting to Boolean state in reactive ViewModels

When this ViewModel loads we kick off the IsAuthenticatedCommand: If the result of ...
3
votes
1answer
369 views

A ViewModel using ReactiveUI 6 that loads and sends data

Most of the Rx Compelling Examples™ load and store data locally which I don't find that Compelling. I spent some time coming up with how to best perform the following actions but want to make sure I ...
3
votes
1answer
62 views

View model usage

I'm about to start work on a large project using MVVM design pattern. I've worked on smaller projects in the past using MVVM, but I want to make sure my approach to MVVM is good/manageable as possible ...
7
votes
2answers
96 views

Correct usage of MVVM and object for method

I'm writing my first C# Windows Store app and am learning C# from scratch. I'm trying to implement MVVM as I understand it and object orientated patterns, obviously though I'm expecting to be doing it ...
3
votes
2answers
53 views

Creating list ViewModels in the correct way

I'm using Caliburn Micro to create a WPF application. So what I want to do here is a typical Master/Detail situation. I'm displaying a list of Users and you can can add/edit a User and save the ...
1
vote
1answer
384 views

Saving a collection of WPF user control layout into an XPS document

I am making an application to save a layout of user control into an .xps document. But, the export doesn't seem completed if the data is too many. I've tried to encapsulate each part with ...
2
votes
0answers
114 views

Usage of MVVM in iOS [closed]

I'm an iOS developer and I'm guilty of having Massive View Controllers in my projects so I've been searching for a better way to structure my projects and came across the MVVM (Model-View-ViewModel) ...
1
vote
0answers
109 views

Nhibernate repository for MVVM applications

I am developing a single user .net desktop application that lists numerous (over 2000) contacts sorted by an algorithm. I use NHibernate and did consider a session ...
2
votes
0answers
136 views

WPF Binding to a Repository with Entity-Framework

I have an MVVM WPF application that will make use (hopefully) with a repository and ...
12
votes
2answers
684 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 ...
3
votes
1answer
266 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
2k 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
116 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
694 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
367 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
221 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
221 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 ...
2
votes
1answer
1k 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
208 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 ...
8
votes
2answers
346 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
142 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
265 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
165 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 ...
6
votes
1answer
82 views

Manage a collection of settings in memory with global scope

I have a WPF app and a bunch of read/write settings that need to be accessible from various view models. a setting can be any type (string, ...
2
votes
1answer
475 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 ...
5
votes
2answers
274 views

Caliburn Micro communication between list and edit viewmodels

I'm new at Caliburn Micro and the MVVM pattern. I have 3 views (with its corresponding viewmodels): AppView ClientsView ...
1
vote
1answer
694 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
574 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
4k 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
729 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
2k 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 ...
5
votes
2answers
4k views

WPF Window with different DataTemplates

I have to do a task hard for me and maybe you can help me. I've tried to design a window dialog to update data from a database view. This database view contains integer, DateTime, string, Time, ...
3
votes
1answer
451 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 ...
3
votes
1answer
4k 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
876 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 ...
2
votes
1answer
103 views

Structuring objects for proper MVVM in Knockout

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. Model, ViewModel, Service definitions: ...
1
vote
1answer
233 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
104 views

Implementing a POCO editor 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
527 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). ...