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

WPF MVVM CommunitytoolKit ObservableValidator validate Model Property in the View Model

I'm trying to use the MVVM Community Tool Kit meanly having my ViewModel inherits from the ObservableValidator to help me validate properties bound to the View control. According to the ObservableValidator documentation…
0
votes
1 answer

Autofac with CommunityToolkit.Mvvm guideline

Previously I've used Autofac with MVVMLight and the CommonServiceLocator in my WPF application. Now I have a scenario where I cannot use either. So I turn to Microsoft MVVM Toolkit instead. But I can't see how/where to use Autofac with that.…
Werner
  • 1,229
  • 1
  • 10
  • 24
0
votes
0 answers

Blazor Mvvm Toolkit navigation

I'm using the MVVM toolkit in a small Blazor application. In a table I've put an "edit" button which calls a ModifyCommand on my ViewModel. A parameter is passed from my View via the CommandParameter. Now in my command I want to goto another View…
Tim D'haeyer
  • 584
  • 6
  • 19
0
votes
1 answer

How to get SelectedItem data using MVVM Toolkit library?

I am trying to fire an event or do any action after clicking any of the items in the list: I am using the library CommunityToolkit.Mvvm but I do not know how to get its data after clicking or selecting any item. For example show an alert and…
Reyneer Leon
  • 356
  • 2
  • 14
0
votes
0 answers

Can't locate file or assembly even though it is there (Community Toolkit MVVM)

I'm using CommunityToolkit.Mvvm version 8.0.0.0 I'm getting this but only in one part of my project: XDG0062 Could not load file or assembly 'CommunityToolkit.Mvvm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=4aff67a105548ee2'. The system…
GAngel
  • 1
  • 2
0
votes
0 answers

Migration from the MVVM Light Toolkit to the Community MVVM Toolkit

I work on the migration of our WPF project that uses the MVVM pattern from the MVVM Light Toolkit to the Community MVVM Toolkit. But I don't understand how to port some message classes. public class ListRequestMessage :…
5ORBEX
  • 81
  • 7
0
votes
1 answer

Menu items with checkboxes dynamically created from collection in WPF

I'm new into WPF, and I'm unfortunately used to work only with WinForms. I'd like to ask for advice with binding. I want to fill menu items for languages like you can see in the picture below I have obtained dictionary with language name as a key…
JMan
  • 60
  • 7
0
votes
2 answers

MVVMToolkit ObservableValidator several "Duplicate" errors

I'm using Microsoft MVVM Toolkit 7.1.2 in a WPF .Net Core 3.1 project. If I use the ObservableObject class it works fine, but, whenever I try to create an ObservableValidator class in my application it gives me several errors in auto generated…
0
votes
2 answers

CanExecute works only partial

I am working on a WPF .NET 5 application that needs to handle a longer task using a button command. Until the task is done, the button should be disabled. I am using the RelayCommand from Microsoft.Toolkit.Mvvm: BtnCmd = new…
ebiondi
  • 23
  • 9
0
votes
2 answers

How do I display the values of a List in a ListView using XAML binding?

I am using the Microsoft.Toolkit.Mvvm library as an MVVM library. My C# code is the following: class SampleViewModel : ObservableObject { private List _sampleList; public List sampleList { get => _sampleList; …
0
votes
3 answers

Which MVVM frameworks help develop an application easier and faster?

I know there are some MVVM frameworks, such as MVVM Toolkit, MVVM Light, and Prism. I was wondering with which one of those MVVM frameworks is it easier and faster to develop an application?
M.Azad
  • 3,673
  • 8
  • 47
  • 77
0
votes
1 answer

MVVM Light Toolkit VerifyPropertyName

In the Design View of a Silverlight page I am getting the following error: - Property not found Parameter name: batchGender at GalaSoft.MvvmLight.ViewModelBase.VerifyPropertyName(String propertyName) etc.... In the ViewModel there was a property…
EzaBlade
  • 657
  • 1
  • 9
  • 23
0
votes
1 answer

New to MVVM Toolkit and need some help getting a simple return value to display

I am very new to Silverlight and WP7 and am writing my first app. I spent a great deal of time trying to figure out what aids to use and my choice came down to Caliburn Micro or MVVM toolkit and after seeing the video on MVVM toolkit, I chose it. …
RJ.
  • 3,173
  • 4
  • 35
  • 44
0
votes
1 answer

Issue MonthPicker Size with MVVM Light toolkit

I've a strange issue with my monthpicker. It has a huge width at initialization. I'm using MVVM Light Toolkit and it seems that's causing the issue. Indeed, with a standard WPF application, the same code works... Another hint, without the popup…
Speuline
  • 201
  • 2
  • 15
0
votes
1 answer

How to pass CommandParameter on holed item?

How to pass CommandParameter on holed item? my xaml code
suresh
  • 113
  • 11