Questions tagged [mvvm-foundation]

MVVM Foundation is a library of classes that are very useful when building applications based on the Model-View-ViewModel philosophy. The library is small and concentrated on providing only the most indispensable tools needed by most MVVM application developers.

mvvm-foundation has certain pre-defined classes by using which we can create applications based on model-view-viewmodel pattern very easily. You can find more about mvvm-foundation in the below link.

http://mvvmfoundation.codeplex.com/

Below is a link having good examples using mvvm-foundation.

http://www.codeproject.com/Articles/173630/MVVM-sharp-Episode-2

29 questions
1
vote
1 answer

Double click event in MVVM Foundation

I've seen several methods for handling this across several libraries but I want to know the best way to do this, specifically with MVVM Foundation. I'm trying to capture double click for list item. Thanks!
Sieg
  • 123
  • 1
  • 6
1
vote
1 answer

MVVM Foundation: Assertion Failed Error: Invalid Property Name

i am just getting started with MVVM Foundation. I am getting my codes below: StartViewModel class StartViewModel : ObservableObject { public StartViewModel() { _counter = 0; } public ICommand IncrementCommand { …
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
1
vote
2 answers

MVVM model responsibility

This is a basic MVVM question. Lets say that i have a student editor window which allows the user to set the student's payment method (cash or cheque). For flexibility, the possible payment methods must be retrieved from the server and the list…
LostInComputer
  • 15,188
  • 4
  • 41
  • 49
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
1 answer

Handling of multiple forms

New to MVVM. I haven't used any MVVM framework (WAF/MVVM Light) .I use relayCommand class from Josh Smith. Got two forms , Win_Login (btnCancel and btnNext),Other one a selection form with combobox and two buttons(btnBack,btnNext) - Where user…
Anees
  • 885
  • 4
  • 13
  • 31
0
votes
3 answers

Opening save file dialog in MVVM using OnPropertyChange is Ok or Not

I am developing painting application in which i need to save my painting. To save i need to show save file dialog , As i am implementing MVVM pattern i can't directly use event handler. But while implementing i thought of using PropertyChanged…
Wajeed Shaikh
  • 3,078
  • 1
  • 23
  • 30
0
votes
2 answers

What MVVM framework is Good For?

i know some Mvvm Frameworks that introduced in this thread please describe or give me link for that what are them useful for? not information about MVVM about MVVM Framework. thanks :) i want to know : What Is MVVM Framework?
Shahin
  • 12,543
  • 39
  • 127
  • 205
0
votes
1 answer

Using MVVM Foundation Messenger to Show Dialog

i have read the other question here on StackOverflow. I understand how to create messages between ViewModels/Objects. But I dont get how can i actually display a dialog. Can I see some code samples implementing this?
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
0
votes
1 answer

How can I make the Visual Studio debugger more useful when using the MVVM Foundation Messenger?

I've been generally very pleased with the MVVM Foundation Messenger, but I've noticed that when a messenger call causes an exception, the Visual Studio debugger doesn't ever seem to take me to the line of code that caused the exception (instead, it…
devuxer
  • 41,681
  • 47
  • 180
  • 292
0
votes
1 answer

Button always in disabled state

I've got a button with a simple command binding on my view: ...
xvdiff
  • 2,179
  • 2
  • 24
  • 47
0
votes
1 answer

How to pass EventArgument information from view to view model in WPF?

I have ListView control in my application which is binded to the collection of CustomObject List. The CustomObject has seperate view. This ListView has seperate view model. The collection List _customobject is containted in the…
Ashish Ashu
  • 14,169
  • 37
  • 86
  • 117
0
votes
2 answers

Please suggest the ( Interaction model of view model) MVVM design in the simple scenario discussed in the subject

Data Layer I have an Order class as an entity. This Order entity is my model object. Order can be different types, let it be A B C D Also Order class may have common properties like Name, Time of creation, etc. Also based on the order type there…
Jack
  • 1
0
votes
2 answers

Making a Generic UserControl which can be accessed by other view

I have UserControl A given below with two Radio Buttons. This UserControl view has its ViewModel. Question: I again have two Views Create and Edit. I want to use the above mentioned UserControl within Create/Edit with requirement that i can make the…
Jois_Cool
  • 395
  • 1
  • 3
  • 14
0
votes
1 answer

Using Canvas with multiple data bindings (and different shapes)

I'm developing a WPF application using the MVVM pattern. In my application I have a canvas that is supposed to display several different shapes. These shapes describe a warehouse (a.k.a storage) and the warehouse contents. To display only the…
Elliott Darfink
  • 1,153
  • 14
  • 34
1
2