Questions tagged [simple-mvvm]

23 questions
0
votes
0 answers

WPF & SimpleMVVM: Binding new viewmodel to view

Please note that this question is specific to SimpleMVVM and the use of its ViewModelLocator. I have a view setup like so:
BrianKE
  • 4,035
  • 13
  • 65
  • 115
0
votes
1 answer

SimpleMVVM and Generic ViewModelBase

I recently found the SimpleMVVM toolkit and am trying to create a small example program. I am trying to create a CurrentViewModel parameter like so: private ViewModelBase<> _CurrentViewModel; public ViewModelBase<> CurrentViewModel { …
BrianKE
  • 4,035
  • 13
  • 65
  • 115
0
votes
1 answer

Should a Controller access a view's model directly?

I am in doubt with the usage of MVC in context to the example as follows : Consider an example of a little drawing application. Now say for example, there is a textbox where user can enter ANGLE for selected shape, Expected result should be, that…
0
votes
1 answer

How to pass XAML grid name?

I am beginner to WPF. There are three tabs in my application each tab with same functionality that is(Each tab has a grid bind to database). Grid in each tab is bind to different database table but functionality is same that is to add, delete,…
Zoya Sheikh
  • 871
  • 3
  • 11
  • 21
0
votes
1 answer

Window is loading first then Command is firing when I am using Interactivity

I am using the following code to call LoadCommand in ViewModel during loading my window.
Anindya
  • 2,616
  • 2
  • 21
  • 25
0
votes
1 answer

DevExpress and SimpleMvvmToolkit - Serialization error

I have a DevExpress DxGrid bound to an ObservableCollection of viewmodels (based on SimpleMvvmToolkit). The viewmodel has 2 properties exposed by itself (a string and a boolean) and a few other properties are exposed by its base class…
Rob Vermeulen
  • 1,910
  • 1
  • 15
  • 22
0
votes
3 answers

Is it OK for property setters to have side effects with the MVVM pattern

I'm writing WPF app which intend to solve standard problems. I'm really new to WPF and MVVM pattern, so there's a little mess in my head after reading tons of different approaches to MVVM on the internet. I'd like to know how my simple operation of…
Roaring Stones
  • 1,054
  • 7
  • 22
0
votes
1 answer

MVVM unit tests - message bus only works once

I am trying to write some unit tests against a view model using SimpleMvvmToolkit, and several of these tests require a message be sent to the message bus to fire events inside the view model. The problem is it appears that I can only 'use' the…
Paul Abbott
  • 7,065
  • 3
  • 27
  • 45
1
2