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

How To Bind a Property to Textbox using MVVM and MVVM toolkit?

I am new to MVVM. to learn I created a sample application to show a message in a text box while clicking on button. In my code the button command is working properly but the property is not binding to the Textbox. How to bind Property to Textbox…
niknowj
  • 977
  • 4
  • 19
  • 37
5
votes
2 answers

MVVM Foundation vs MVVM Toolkit

Can someone explain the differences between the MVVM Foundation and the MVVM Toolkit? They seem to have a lot in common.
Sauron
  • 16,668
  • 41
  • 122
  • 174
4
votes
2 answers

How to pass parameters to command using multibinding?

I am using MVVM tool kit version1. I have two Text boxes textbox1 and textbox2. I need to pass these two values as parameter when pressing on button and need to show the result on a third Text Box named textbox3. my VM code similar like this…
niknowj
  • 977
  • 4
  • 19
  • 37
4
votes
0 answers

How to Navigate to different page in avalonia UI using Community Toolkit MVVM package

I have created a project using Avalonia UI MVVM C# project. and I am very new to this. I am using the Community Toolkit MVVM package, not the Reactive UI package. There are two pages, "MainWindow" and "SettingWindow". There is a button on the…
yasith rangana
  • 196
  • 2
  • 12
3
votes
1 answer

WPF (MVVM): Wiring up viewModel to view in code-behind of Window?

I have been getting my feet wet with MVVM pattern for WPF and everything is working as it should.. But i am wiring up the viewmodel to my view datacontext from my codebehind of my window. Sure enough the point of MVVM is to get rid of code behind…
mark smith
  • 20,637
  • 47
  • 135
  • 187
3
votes
2 answers

How to avoid code duplication in MVVM?

This question is similar to Where does business logic sit in MVVM? However, I didn't want to create a comment chain on that one Lets say for example that I have a table of invoices and I want to get this data and perform some apportionment on it…
Paul
  • 2,773
  • 7
  • 41
  • 96
2
votes
1 answer

telerik Busy Indicator is not visible

Hi I am trying to use telerik Busy indicator with MVVM. I have the Busy indicator in Mainwindow. When there is an action(button click) on one of the user controls that is in the window, the user controls view model sends an message to the…
katie77
  • 1,797
  • 4
  • 25
  • 43
2
votes
1 answer

Intellisense doesn't work for MVVM light toolkit

I began to use MVVM pattern yesterday.But for working with events i needed to install MVVM light toolkit.I did that,and added library to references.At UserControl i announced that library,but when i want to use toolkit whatever i write it doesnt…
Javidan Guliyev
  • 227
  • 5
  • 13
2
votes
1 answer

CommunityToolkit.Mvvm: Change source generated property setter behaviour

As topic says. Is it possible to "inject" some null check in source generated setter method? I am using CommunityToolkit.Mvvm 8.1.0.0 For this demo I have simple class Test with private field _someProperty with [ObservableProperty] on top of…
Myszax
  • 33
  • 4
2
votes
2 answers

I need help regarding C# Community Toolkit Mvvm Source Generator

Hi I am trying to implement C# Community Toolkit Mvvm Source Generator in my WPF sample app I have the following code private ToDoTask _task; public TaskViewModel() { _task = new ToDoTask(); _tasks = new…
2
votes
1 answer

CommandParameter not passed to CanExecute when databound within a DataGrid (CanExecute parameter is null)

I am using the Microsoft.Toolkit.Mvvm nuget package for building out a WPF application on .NET Core 3.1. I'm having an issue with binding the CommandParameter of a button within a DataGridTemplateColumn of a Datagrid. I have a RelayCommand defined…
thornhill
  • 632
  • 7
  • 17
2
votes
2 answers

ListBox ItemsSource Doesn't Update

I am facing a ListBox's ItemsSource related issue. I am implementing MVVM with WPF MVVM toolkit version 0.1. I set one ListBox itemSource to update when a user double clicks on some other element (I handled the event in the code behind and executed…
picmate 涅
  • 3,951
  • 5
  • 43
  • 52
2
votes
1 answer

How to add Modern UI WPF style to MVVMLight application?

I am trying to use MVVMLight toolkit along with Modern UI WPF to create a new WPF application using c#. I created a new MVVMLight-based project. I installed the Modern UI WPF using Nuget. I added the following xaml to Application.resources section…
Junior
  • 11,602
  • 27
  • 106
  • 212
2
votes
2 answers

Why Does Raising PropertyChanged events from a timer cause an COMException?

I'm developing a Universal Windows Platform app using XAML that runs on a Raspberry Pi under Windows 10 IoT Core. The app drives a temperature sensor that's on the I2C bus. The sensor class is MLX90614Thermometer. The sensor uses a DispatcherTimer…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
2
votes
3 answers

Possible way of initializing constructor/object

I'm beginner when it comes to OOP. Yesterday I was trying to read some mvvm/wpf examples and of course I get into trouble... I have some problem with understand some of code below: { class Person { public string FirstName { get; set; } public string…
h00jraq
  • 85
  • 1
  • 8
1
2 3 4 5