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
1
vote
2 answers

MVVM Light Toolkit (GalaSoft) vs. MVVM Toolkit (WPF Toolkit)?

I am new to MVVM and now trying to get involved. The lack of official support for MVVM in the .NET and the IDE (templates, generators) is very disapointing. I was doubting what tool is better from these: MVVM Light Toolkit MVVM Toolkit (from the…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
1
vote
1 answer

MVVM Toolkit - How do I get a MessageBox to display an error from the callback if the WCF Service fails

I am using the MVVM Toolkit to build my WP7 apps and I am trying to get a MessageBox to display an error if the WCF service fails. Here is the code I have in my ServiceHelper layer: public void GetRandomBibleVerseById(Action
RJ.
  • 3,173
  • 4
  • 35
  • 44
1
vote
1 answer

Provide value on 'System.Windows.StaticResourceExtension' threw an exception

I am trying to bind Visibility of Window in WPF by Converter. I am getting the error. System.Windows.StaticResourceExtension System.Windows.StaticResourceExtension I am providing my code below. My View is enter image description here
Payel
  • 35
  • 1
  • 6
1
vote
3 answers

INotifyPropertyChanged on Model classes

Is it generally desirable to implement INotifyPropertyChanged on Model classes, ViewModel classes, or both? Is it possible to implement on Model only ,not on Viewmodel? If not possible model then why
Sudhir.net
  • 83
  • 9
1
vote
1 answer

mvvm light Winforms dll project, how can I load the ViewModelLocator

I am working on a winforms project in c#. The project is an outlook plugin, so no hopes of totally converting to mvvmlight/wpf as it's a winforms dll project. I am however trying to come up with a way to use MvvM Light and WPF with the ElementHost.…
Jeff
  • 387
  • 1
  • 3
  • 11
1
vote
1 answer

MVVM-Light: Where should we put the register of Messenger

About using messenger of mvvmlight v4, I have a questions: Where should we put the register of Messenger? I sought out some examples, they put them in constructor of view. But I got a problem with that, anytime we create an instance of view, this…
kidgu
  • 413
  • 1
  • 8
  • 18
1
vote
1 answer

appbar windows phone 8 mvvm

Well then , I got something like this in my manipange.xaml , my application bar declaration, and my button declaration/definition
Przmak
  • 133
  • 1
  • 1
  • 7
1
vote
2 answers

An MVVM button event with a list view not getting the selected item

I am trying to get the selectedItem from my list view. I am using MVVM light toolkit and the EventToCommand on a button. My listView is bound to an ObservableCollection which is correctly binding. Here is the listView xaml:
user101010101
  • 1,609
  • 6
  • 31
  • 52
1
vote
1 answer

Correct way to share view models MVVM?

I have ContractView. This is to be displayed from 2 separate tiles on my dashboard. One for baseload and one for peak load. When showing baseload clips the title will be Baseload Clip Definition and when from the Peak Load tile on my dashboard,…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
3 answers

How to bind to a WPF dependency property to window?

i create a dependency property to close a view from view model, dependencyProperty: public static class WindowBehaviors { public static readonly DependencyProperty IsOpenProperty = …
mahboub_mo
  • 2,908
  • 6
  • 32
  • 72
0
votes
1 answer

how to displaying data changes in MVVM view?

I'm starting to use MVVM,but I've been confused about something,there's my problem,I wanna add just one row in my table,and here's the way that i do this: Viewmodel class: // Model.MyClass is my entity Model.MyClass myClass; public…
mahboub_mo
  • 2,908
  • 6
  • 32
  • 72
0
votes
1 answer

DataBinding with MVVM Light tool kit

I get some trouble with the binding using MVVM toolkit and would likr to knwo some advise if I do things correctly. First of all I have the View Model Locator which is defined as follow : public class ViewModelLocator { private static…
serge
  • 391
  • 5
  • 24
0
votes
1 answer

Notifying two separate classes of property change using Mvvm Community Toolkit

My goal is essentially to have two separate classes, a searchbox and textfield, react to one another once their counterparts' values change. I've been experimenting with the new MVVM toolkit of Microsoft, and I've explored the [ObservableProperty]…
0
votes
1 answer

Using WeakReferenceMessenger to send a message with a value to an async callback

I've been trying to implement WeakReferenceMessenger to send messages in my Xamarin app. I've successfully used it to send messages to an async callback using the following... Message class: public class MyMessage : CollectionRequestMessage { …
bcl
  • 478
  • 1
  • 5
  • 16
0
votes
1 answer

.NET Maui how to scroll to specific element?

I am new to .NET MAUI. I have a calendar: And this is my XAML:
jreloz
  • 413
  • 4
  • 18