Questions tagged [mvvm-toolkit]

The main purpose of the toolkit is to accelerate the creation and development of MVVM applications in WPF, Silverlight, Windows Store (RT) and for Windows Phone

The main purpose of the toolkit is to accelerate the creation and development of MVVM applications in WPF, Silverlight, Windows Store (RT) and for Windows Phone.

The MVVM Light Toolkit helps you to separate your View from your Model which creates applications that are cleaner and easier to maintain and extend. It also creates testable applications and allows you to have a much thinner user interface layer (which is more difficult to test automatically).

This toolkit puts a special emphasis on the "blendability" of the created application (i.e. the ability to open and edit the user interface into Blend), including the creation of design-time data to enable the Blend users to "see something" when they work with data controls.

74 questions
0
votes
2 answers

My app close when navigate to another page on windows phone 8.1

I'm using MVVM Light Toolkit to build an app in windows phone 8.1, When I use Navigation Service's NavigateTo method my app close without throwing an error. This issue seems to be randomly. I'm using the typical MVVM architecture. I Use a…
Alcruz
  • 537
  • 5
  • 12
0
votes
2 answers

How to pass multiple parameters and EventArgs properties when using EventToCommand in MVVM-Light toolkit

I am using MVVM Light toolkit for my WPF application and I would like to know if its possible, when using EventToCommand, to pass multiple parameters to RelayCommand and Is it possible to pass properties of EventArgs instead of passing the whole…
nabeelfarid
  • 4,156
  • 5
  • 42
  • 60
0
votes
4 answers

Can't bind ICommand in VM to button Command in xaml

I create a VM based on MVVM light toolkit. In VM, there is a simple ICommand(RelayCommand) private RelayCommand _myCommand = null; public RelayCommand MyCommand { get { if (_myCommand == null) //set break point…
KentZhou
  • 24,805
  • 41
  • 134
  • 200
0
votes
1 answer

injection of a stub with MVVM Light Toolkit (galasoft)

I am using the Galasoft MVVM Toolkit and ServiceLocator to manage my services in my application. I would like to manage two different implementation of service. A stub implementation should be injected in a debug/design mode and a real…
ltu
  • 169
  • 3
  • 16
0
votes
2 answers

MVVM Light Messenger

I am new to MVVM Light and I am trying to learn and implement the Messenger class. I have read many other messenger tutorials and posts but still can't get it to work. Below is some code I wrote to help me learn. From my research I think I have…
mrsargent
  • 2,267
  • 3
  • 19
  • 36
0
votes
2 answers

Connect NHibernate with the MVVM Light Toolkit

I have the following problem: In my Application I have to connect to an Access Database - yeah, I know that Access isn't a great database - but I have to use it. The Application will be written in WPF, with the MVVM Light Toolkit and…
MaxBec
  • 1
  • 2
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

Dealing with Selectionchanged and currentlyselected item in viewmodel?

Could anyone please provide an example of how i can handle storing the currently selected item, within a longlistselector( or any list control ) within my viewmodel. I seem to fail to understand how to implement the logic within the viewmodel,…
user2309367
  • 317
  • 2
  • 8
0
votes
1 answer

Command is received by all instances instead of one single MVVM toolkit

I have created a View call PhotoView with a PhotoviewModel it is bind to. in the view model I have define a commande as follow : //Show info command ShowInfoCmd = new RelayCommand( (e) => { if…
serge
  • 391
  • 5
  • 24
0
votes
0 answers

Simple MVVM Toolkit has models folder in web application not Silverlight?

I have just noticed something interesting with the Simple MVVM toolkit The models folder is in the web application The web application is .NET I thought I would define all my complex logic, etc in the model within the server Am I missing something…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

WPF data context scenario

I have a user control in XAML code (a data grid) with this databind statement:
guton
  • 43
  • 6
-1
votes
1 answer

How to pass the model information to a user control view model that is in a main window?

I'm trying to learn MVVM Pattern doing a simple GUI using WPF . It's just a simple plugin for Autocad with a modal window showing some information about the model. I have two Usercontrols with their respective views and viewmodels. I'm showing these…
Eduardo
  • 687
  • 1
  • 6
  • 24
-1
votes
1 answer

Get event args in view model of a wpf program

I have a program where I need to access the characters typed from the keyboard into the view model. I can easily obtain the KeyEventArgs in the code behind using KeyUp method, but how do I access that in the ViewModel? Please help.
nan
  • 585
  • 2
  • 9
  • 22
-2
votes
1 answer

Why do my source generated properties are unreacheable in code? using mvvm toolkit

Hello got the following wpf code thats using source generators utlizing mvvm community toolkit version 8: public partial class CalculatorVM : ObservableObject { [ObservableProperty] private int buttonOne = 1; …
1 2 3 4
5