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
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
0 answers

SelectedItem(ListPicker) Default Value Not In My Property (MVVM Light) - Wp7

I have an List Picker what I am trying to bind by using Mvvm way. It works but I don't understand why when the List Picker loads a value is filled by the property in my ViewModel is null. I am setting the property to null and I could make it get the…
chobo2
  • 83,322
  • 195
  • 530
  • 832
1
vote
1 answer

MVVM Light: how to send a parameter to ViewModel (when opening new window)?

I am trying to learn MVVM with MVVM Light Toolkit in WPF. But I am stuck on one simple problem. I have an AddEditProfileWindow which basically has a textbox for profile name and a confirm button. It adds new profile to database table or updates…
Alex P.
  • 3,697
  • 9
  • 45
  • 110
1
vote
1 answer

Use MessageDialog/MessageBox with Portable Class Library and MVVM Light

I´m developing an App that will be available for Windows Phone 8 and the Windows Store. To reduce redundancy I´m using a Portable Class Library (PCL) and on top of that I'm trying to apply the MVVM pattern with the help of the MVVM Light PCL…
1
vote
0 answers

mvvm-light RelayCommand not firing

I have a wpf app using Mvvm Light and Ninject. On my local machine the RelayCommand works fine, when I move the app to another server it no longer calls the method (the message box does not pop up). In MainViewModel.cs I have public ICommand…
reggaeguitar
  • 1,795
  • 1
  • 27
  • 48
1
vote
1 answer

how to pass composite object to view model

I'm using mvvm light with wpf. Currently i can pass string parameter to viewmodel's command like below:
1
vote
1 answer

Open new form and hide this form in mvvm light toolkit

I have a LoginWindows, that run in startup. I have a enterButton ,when click it, send a parametr to mainwindows and show it then hide self. public RelayCommand EnterCommand { get; set; } ... public LoginViewModel() { …
ar.gorgin
  • 4,765
  • 12
  • 61
  • 100
1
vote
0 answers

Integrate Prism Region Management and Navigation with MVVMLight

In my current project I am using the MVVMLight framework. I am experiencing some difficulties with the navigation between views. Currently, I am using DataTemplates to navigate between Views. However, every time one navigates to another view, this…
1
vote
1 answer

Formatting DataGrid Column based on user column selection

I have a ComboBox( collection of available columns ) in the headertemplate of the gridview. Initially the grid is binded to a datatable which has column names starting from A,B..Z and 50 rows. ( initial setup ). When a user selects a column from…
1
vote
2 answers

how to avoid multiple views reciving data from same viewmodel

I'm bit confused with the behavior of my code. I'm still newbee in MVVM light. I have NewMessageWindow which is shown by command private ICommand newMessageCommand; public ICommand NewMessageCommand { get { if…
Robert
  • 19,800
  • 5
  • 55
  • 85
1
vote
3 answers

MVVM Light Messages - Multiple ViewModel instances

I'm sure this has been asked before but I can't get a proper answer. Herewith the scenario: I have a grid with two Graphs on each row. Clicking on something on Graph1, sends a Message using from Code Behind of Graph1 :…
Fox
  • 891
  • 3
  • 9
  • 30
1
vote
1 answer

MVVM Light RaisePropertyChanged

I am not able to get the UI to respond to RaisePropertyChanged for some reason. Well stuck. CurrentClient is the part not firing to the UI. Really strange. Hopefully someone can help me out. Thanks Scott public class ClientViewModel :…
scottsanpedro
  • 1,142
  • 2
  • 12
  • 28
1
vote
0 answers

How to refresh data grid with new search results with MVVM Light

I'm using the latest MMVM Light windows 8 binaries and VS 2012 latest updates, so all is good there. I'm new to the MVVM Light framework, so it's an adjustment. I have a Customers page with a grid that is searched with a textbox and button - the…
1
vote
1 answer

update GUI for SelectedeRow values of wpf datagrid

I have a wpf (.Net 4.5) datagrid. I am using the MVVM pattern for my application with the MVVM-Light framework. I have a datagrid that is bound to an observable collection of "Tracking" objects called TrackingCollection. The datagrid selectedItem…
J King
  • 4,108
  • 10
  • 53
  • 103
1
vote
1 answer

WPF & MVVM Light - Closing a specific child window via Messenger

In my project I am able to open multiple child windows, display and return information from them, and then close them with a button click. The problem that I am having is that clicking the "Accept" or "Cancel" button closes all open windows. I need…
Jason D
  • 2,634
  • 6
  • 33
  • 67
1 2 3
99
100