Questions tagged [mvvm-light]

The MVVM Light Toolkit is a set of components helping people to get started with the Model - View - ViewModel pattern in Silverlight, WPF, Xamarin, .NET Core and Windows Phone. It is a light and pragmatic framework that contains only the essential components needed.

The MVVM Light Toolkit is a set of components helping people to get started with the Model - View - ViewModel pattern in Silverlight, WPF, Xamarin, .NET Core and Windows Phone. It is a light and pragmatic framework that contains only the essential components needed.

The main purpose of the toolkit is to accelerate the creation and development of MVVM applications in WPF, Xamarin, .NET Core, Silverlight and Windows Phone.

Like other MVVM implementations, the toolkit helps users to separate the View from the Model which creates applications that are cleaner and easier to maintain and to extend. It also creates testable applications and allows to have a much thinner user interface layer (which is more difficult to test automatically).

More information about the MVVM Light Toolkit can be found on http://www.galasoft.ch/mvvm .

Currently there are versions for .Net 4.5, 4 & 3.5 and a portable version as well.

2856 questions
12
votes
3 answers

The name ViewModelLocator does not exist in the namespace

I'm learning WPF with MVVM Light and i've an issue with my Portable Class Library. I follow this tutorial: http://www.codeproject.com/Articles/536494/Portable-MVVM-Light-Move-Your-View-Models I created a portal class library and a WPF mvvm light 4.5…
user1898765
  • 323
  • 1
  • 6
  • 18
12
votes
1 answer

WPF MVVM Light unit testing ViewModels

I am not a regular with the MVVM pattern and this is basically my first time playing with it. What I used to do ("normal" WPF), was creating my Views with a Business layer and perhaps a datalayer (which usually contains my entities created by a…
Roger Far
  • 2,178
  • 3
  • 36
  • 67
11
votes
7 answers

CommandManager.InvalidateRequerySuggested does not cause a requery on CanExecute in MVVM-Light

I am using MVVM-Light RelayCommand private ICommand myRevertCmd; public ICommand Revert { get { if (myRevertCmd == null) { myRevertCmd = new RelayCommand(RevertExecute, CanRevertExecute); …
Andrea
  • 273
  • 1
  • 3
  • 8
11
votes
1 answer

UI tab control visibility changes between debug and deployed version

I have a WPF Mvvm-Light application that uses tab controls to display different views to the user. PROBLEM: THe problem I have is that when the program first loads the tab control displays empty. But when debugging locally this problem never…
J King
  • 4,108
  • 10
  • 53
  • 103
11
votes
2 answers

Why MVVM Light copies system assemblies to application folder?

Adding MVVM Light reference to a WPF projects adds a large number of system assemblies to the list of dependencies in the accompanying MSI Setup project. These assemblies (50+ in number) are then copied to the application folder when the app is…
dotNET
  • 33,414
  • 24
  • 162
  • 251
11
votes
1 answer

A super-simple MVVM-Light WP7 sample?

I am looking for a sample that demonstrates in the lightest way possible the following: A Model that invokes a SOAP based web service; regularly polling to get the latest value (assume the SOAP service returns a boolean). The model should also…
tig
  • 3,424
  • 3
  • 32
  • 65
11
votes
3 answers

Using WPF DataGridComboBoxColumn with MVVM - Binding to Property in ViewModel

I'm using the excellent MVVM Light Toolkit. My ViewModel exposes: public const string CourtCodesTypeCourtPropertyName = "CourtCodesTypeCourt"; private List _courtCodesTypes = new List(); public List
Mike L
  • 4,693
  • 5
  • 33
  • 52
11
votes
3 answers

How to run a function on a background thread for Windows Phone 7?

I'm using MVVM Light to build a WP7 (Windows Phone 7) application. I wish to have all the work performed by the Model to be run on a background thread. Then, when the work is done, raise an event so that the ViewModel can process the data. I have…
11
votes
2 answers

How to add Command Behavior in windows store 8.1 MVVM application

I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light.
Muhammad Saifullah
  • 4,292
  • 1
  • 29
  • 59
11
votes
2 answers

Windows Phone 8.1 MapTileSource binding with MVVM

I'm trying to bind the DataSource of a MapTileSource to a property on my view model, but I am getting the error REGDB_E_CLASSNOTREG on the Maps:MapTileSource line (underlined in blue is VS editor). I could always use a binding helper to achieve the…
Paul Abbott
  • 7,065
  • 3
  • 27
  • 45
11
votes
4 answers

MVVM-light There is already a factory registered for INavigationService

I'm trying to adjust my WP8 project from self made MVVM implementation to MVVM Light. The application compiles without errors, but when I open my MainPage.xaml in Expression Blend, I will get this error: Class project.Services.INavigationService is…
Mamamouchi
  • 111
  • 1
  • 4
11
votes
1 answer

MVVM conform localization in WPF Applications

How can I localize an WPF Application using the MVVM Pattern? I really want to do it the "right" way. My current approach is that I use .resx Resource files to localize my application. I included them in my xaml…
Joel
  • 4,862
  • 7
  • 46
  • 71
11
votes
4 answers

Is MVVM dead in Windows 8 Store Apps?

I have started learning about Windows 8 Store Apps. I recall from Silverlight and WPF programming earlier that people adapted the MVVM concept and now I am not sure if I should use what i learned back then or not. I added a reference to the…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
10
votes
2 answers

Does the MVVM Light SimpleIoC support singletons?

I'm using SterlingDB in my current Windows Phone project, and I would like to be able to resolve the Sterling database from various places in my application using the new SimpleIoC container in MVVM Light v4. However, I'm not sure if SimpleIoC…
Josh Earl
  • 18,151
  • 15
  • 62
  • 91
10
votes
4 answers

mvvm light - messaging

I'm curently teaching myself the MVVM pattern. I've hit my first snag with the concept of messaging. I know messaging is contained in the mvvm-light toolkit. But I cannot find an example of usage anywhere (no sample projects are provided in the…
onefootswill
  • 3,707
  • 6
  • 47
  • 101