Top "Icommand" questions

Interface for MVVM scenarios in Silverlight and WPF to bind commands from models to controls (Buttons).

ICommand MVVM implementation

So in this particular MVVM implementation I'm doing, I need several commands. I really got tired of implementing the ICommand …

c# .net wpf mvvm icommand
Pass command parameter to method in ViewModel in WPF?

I am trying to pass CommandParameter to the method in my ViewModel. How to do this? private void Open(object …

c# wpf mvvm icommand
Command for WPF TextBox that fires up when we hit Enter Key

It is very easy to bind Buttons in WPF apps to Commands in a VIEWMODEL class. I'd like to achieve …

c# .net wpf icommand
How to Bind a Command in WPF

Sometimes we used complex ways so many times, we forgot the simplest ways to do the task. I know how …

c# wpf icommand commandbinding
Multiple command parameters wpf button object

How can I send multiple parameters from Button in WPF? I am able to send single parameter which is value …

c# wpf button mvvm icommand
Pass command parameter from the xaml

I try to do something like this: <DataGrid Name="myGrid" ItemSource="{Binding Path=MyCollection}"> <DataGrid.ContextMenu> &…

wpf xaml binding mvvm icommand
ICommand vs RoutedCommand

Let's have a button Command property bound to a custom command. When should I implement ICommand and when derive from …

wpf mvvm icommand routed-commands
WPF & MVVM: Get values from textboxes and send it to ViewModel

I'm trying to get the value of two Texboxes (I'm simulating a login window) when I press a button. The …

wpf mvvm icommand delegatecommand
binding a command inside a listbox item to a property on the viewmodel parent

I've been working on this for about an hour and looked at all related SO questions. My problem is very …

wpf mvvm binding icommand
CanExecuteChanged event of ICommand

Icommand contains two methods and one event. What the two methods do is clear, but I can’t understand what …

c# .net wpf icommand