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
2
votes
2 answers

EventToCommand not coming with LightMvvm in WPF4 in .net 4 framework

I am not getting EventToCommand. My assembly is as followes
Anindya
  • 2,616
  • 2
  • 21
  • 25
2
votes
1 answer

How do I create widgets in Silverlight?

I appreciate this may be a case of running before I can walk and that discussions are occasionally frowned upon, as opposed to questions However, I am new to Silverlight and I am keen to not get into bad habits! As this is more of a general advice…
Paul
  • 2,773
  • 7
  • 41
  • 96
1
vote
1 answer

Should each view model be handled by a single ViewModelLocator?

I am starting to explore the MVVM light and start to design my different viemModels. I have browsed for long time to find out what I am looking for but I could not get it :-(. One sample I have is based on a single MainViewModel, which is handled…
serge
  • 391
  • 5
  • 24
1
vote
1 answer

.Net MVVM RelayCommand not binding to custom view's Bindable Property

For some context, I'm using Microsoft's MVVM Toolkit and .Net Maui. Im trying to bind a RelayCommand to a Command Bindable object of a view. The code builds fine, it's at runtime that I'm seeing the following error: "Warning: 'DeleteCommand'…
Eliezer Ferrá
  • 127
  • 1
  • 12
1
vote
1 answer

Using RelayCommand CanExecute with CommunityToolkit.MVVM and Microsoft.Xaml.Behaviors.Wpf

I am trying to combine the CommunityToolkit.MVVM (8.2.0) with Microsoft.Xaml.Behaviors.Wpf (1.1.39) and enable/disable a button using RelayCommands CanExecute functionality. In my case I need to query the PreviewMouseDown event (Not a standard click…
Tom Oeser
  • 632
  • 1
  • 5
  • 8
1
vote
1 answer

MVVM Toolkit - message receiver not firing?

Hello I got a simple message that I'm trying to deliver between classes: public class MainVM : ObservableRecipient, IRecipient { public void Receive(SaveMessage message) { …
AntiMatter
  • 13
  • 5
1
vote
1 answer

AddHttpClient in Ioc.Default.ConfigureServices

I am refractoring an .NET C# application to the latest MS MVVM Toolkit. MS suggests the refit as a goto library to interact with REST API. However, I would like to use AddHttpClient following Ioc (Inversion of control) pattern. Below is the sample…
Jim
  • 2,760
  • 8
  • 42
  • 66
1
vote
1 answer

Dynamically creating ViewModels with MVVM light toolkit

I have a search view and details(2-3) views that depend on the selection of the search view. Up on selection the search view model sends the message to change the view to Main viewModel and also sends a message with the selected ID. When the main…
katie77
  • 1,797
  • 4
  • 25
  • 43
1
vote
1 answer

Using INotifyDataErrorInfo on reusable control

I'd like to implement MVVM Toolkit's validation method using reusable controls. My problem is that the warning highlight appears on the whole control, like this: If I don't use reusable controls, it works correctly: The reusable control looks like…
drazse
  • 93
  • 1
  • 7
1
vote
1 answer

How can I change IsInDesignMode to use it in Microsoft.Toolkit.MVVM?

This time I must be migrate MVVMLight and replace it with Microsoft.Toolkit.MVVM. In the documentation is written there's no direct replacement for IsInDesignMode, altered or remove it. I don't know any option to alter it, can anyone help me ? …
1
vote
2 answers

WPF set DataContext to a ViewModel without default constructor

I have a ViewModel that accepts several constructor parameters. As I understand because of this the only way to set View's DataContext is using code behind. This has its downsides: Visual Studio will not show ViewModel inteliscence for the view…
Alias
  • 341
  • 2
  • 3
  • 14
1
vote
2 answers

Simple MVVM toolkit - any limitations?

I am building Silverlight LoB app with WCF RIA services. Inorder to implement SL I looked at the available MVVM toolkits\frameworks. Application I am building is very light weight with 8-10 UI screens having typical list and detailed information…
Sandeep G B
  • 3,957
  • 4
  • 26
  • 43
1
vote
1 answer

MVVM Light Toolkit design approach (Navigation & view load)

I am building a simple application with 4-5 views in Silverlight. I came across MVVM Light toolkit and I think it suits my need. Background Application will have views with typical list and details display Manufacturer Product and so on with left…
Sandeep G B
  • 3,957
  • 4
  • 26
  • 43
1
vote
1 answer

Flagging a DataGrid row according to a business rule criterion in Silverlight 4 using M-V-VM Light

I've written code to change the foreground property of a DataGrid cell if the row containing that cell meets a given rule (let's say its text must have the value "Incomplete"). I can make this work fairly easy by catching the LoadingRow event in…
1
vote
2 answers

Populating a Wrappannel Dynamically in MVVM

this is regarding a best practice advice regarding using MVVM. I am in need to populate a wrappanel as and when elements are dropped in to it. The elements are not uniform, they can be either labels or text boxes. Depending on a value of a parameter…
picmate 涅
  • 3,951
  • 5
  • 43
  • 52