Questions tagged [simple-mvvm]

23 questions
11
votes
2 answers

MVVM pattern in java

I want to make a mvvm project on java. But I can not find a sample project. There are a few Android samples but I don't want to make an Android-project. So how can I make a project with the mvvm pattern? I am trying to create a desktop application…
yasedox
  • 321
  • 1
  • 3
  • 7
3
votes
2 answers

MVVM Detect property change of subclass

I am using SimpleMVVM and have two separate classes (models), one using the second like this: public class Database : ModelBase { public String ServerName //{ get; set; } { get { return _ServerName; } …
BrianKE
  • 4,035
  • 13
  • 65
  • 115
3
votes
2 answers

MVVM with continuously updated data

I am currently working on a Windows Store application (8.1) which is supposed to do the following: Talk to a USB HID Device (figured that out) Display data from that device (I want to use Oxyplot for displaying this data, got that) Use MVVM (I…
Tom L.
  • 932
  • 2
  • 9
  • 30
3
votes
2 answers

MVVM How to get away from Code Behind Events

After looking at some of the MVVM toolkits(MVVM Light, SimpleMVVM) out there the common theme seems to try to use as many blendable events as possible and not use codebehind. I am not sure how to do all the events. For instance 2 events come to bind…
chobo2
  • 83,322
  • 195
  • 530
  • 832
2
votes
1 answer

Command Binding works in designer/VS, but not build/release

I may be overlooking something obvious here, but I can't see it for the life of me right now. I've got an interaction on a user control (data grid) which has an item source bound to an ICollectionView, but the DataContext is inherited from the…
TyrantWave
  • 4,583
  • 2
  • 22
  • 25
2
votes
1 answer

mvvm wpf c# Entity framework tutorial

Share some good link for building application using mvvm wpf EF4 using C# .I need tutorial /video /book that that start from basic concept of mvvm using EF and C# and cover at least major topics for building a complete project/application for an…
2
votes
2 answers

EventToCommand not coming with LightMvvm in WPF4 in .net 4 framework

I am not getting EventToCommand. My assembly is as followes
Anindya
  • 2,616
  • 2
  • 21
  • 25
2
votes
1 answer

WPF - Catch exceptions in code executed by SimpleMVVM messagebus

I'm building a WPF application using the SimpleMVVM framework and I'm having trouble catching exceptions. I use the MessageBus of SimpleMVVM to send a message to another viewmodel. This all works fine, but I noticed that exceptions raised in the…
J.P.
  • 5,567
  • 3
  • 25
  • 39
1
vote
2 answers

Strategy for locating ViewModels when views are hierarchical and need to be swapped in and out

Let's say I'm building a navigation system for a car: The main window would contain a screen, mode buttons, and a volume control. Depending on the mode of the system, the screen would either show an audio, climate, or navigation panel. When in…
devuxer
  • 41,681
  • 47
  • 180
  • 292
1
vote
2 answers

"Simple MVVM Toolkit" child Model classes in C# WPF

I'm using "Simple MVVM Toolkit" (MVVM noob here) to develop a C# WPF app. I have a model class called A: public class A : ModelBase { //properties, constructors, methods.. } ..and another model class called B which inherits from A but…
globetrotter
  • 997
  • 1
  • 16
  • 42
1
vote
1 answer

Immediate action after checking checkbox in GridView

I'm developing a MVVM-based system with DevExpress WPF controls and Simple MVVM Toolkit. There is a case where I am displaying a GridControl where the viewmodel of each row in the grid has got a boolean property (among others). This property is…
Rob Vermeulen
  • 1,910
  • 1
  • 15
  • 22
1
vote
2 answers

How to add event handler in MVVM in Windows Phone 8?

All I have a issue. Now I'm using MVVM framework to develop Windows Phone 8 app. I just want to when I press the button, then begin to record something, when release the button, stop recording, I used InvokeCommandAction to bind the command in…
Alen Lee
  • 2,479
  • 2
  • 21
  • 30
1
vote
0 answers

Is there a way to propagate input validation in model through viewmodel

I have a model with a few properties and in that model I do some validation checks (checking if values don't exceed ranges, if it is a number, if it is a valid postal code etc). These checks should be done by the model, I think. I have a choice of…
Rob Vermeulen
  • 1,910
  • 1
  • 15
  • 22
1
vote
1 answer

What exactly WPF runtime does after raising the PropertyChanged event of INotifyPropertyChanged interface

I have been asked this question in an interview "When we want to reflect the changed value of a propery on the view when some updates the binded propery in backend in ViewModel, then we generally raise the event which is given by implementing…
Yogesh
  • 3,044
  • 8
  • 33
  • 60
0
votes
2 answers

My Combobox Selected Value binding doesn't flow back in Two Way Data binding

Im Using Simple MVVM Framework to create a simple Silverlight 4.0 LOB Application. I have an Employee List View that shows List Of all Employees in and i have in my EmployeeListViewModel some properties As Follow: private Grade selectedGrade; …
3oon
  • 365
  • 1
  • 5
  • 15
1
2