Top "Commandbinding" questions

Binds a RoutedCommand to the event handlers that implement the command.

How to bind Close command to a button

The easiest way is to implement ButtonClick event handler and invoke Window.Close() method, but how doing this through a …

wpf button wpf-controls commandbinding
WPF - How to force a Command to re-evaluate 'CanExecute' via its CommandBindings

I have a Menu where each MenuItem in the hierarchy has its Command property set to a RoutedCommand I've defined. …

.net wpf command commandbinding
WPF: How to bind a command to the ListBoxItem using MVVM?

I have just started learning MVVM. I've made the application from scratch by following this MVVM tutorial (I highly recommend …

c# wpf mvvm binding commandbinding
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
WPF DataGrid: CommandBinding to a double click instead of using Events

I know how to use the MouseDoubleClick event with my DataGrid to grab the selectedvalue, but how would one go …

wpf datagrid double-click commandbinding
Using the parent's DataContext (WPF - Dynamic Menu Command Binding)

I looked over this web and google and the solutions didn't work for me. I have a command on the …

c# wpf dynamic menu commandbinding
WPF/MVVM - how to handle double-click on TreeViewItems in the ViewModel?

(Note - this is a re-post as my first question got posted under wrong headline: Here Sorry!) I have a …

c# wpf mvvm mouseevent commandbinding
Bind command to Loaded event of view

I am trying to get a method to run when a view has finished loading. I have tried to bind …

wpf xaml commandbinding
How to fire a Command when a window is loaded in wpf

Is it possible to fire a command to notify the window is loaded. Also, I'm not using any MVVM frameworks (…

wpf mvvm commandbinding delegatecommand
Receiving CommandParameter Value in MVVM

I am binding my command like: <Button Command="{Binding NextCommand}" CommandParameter="Hello" Content="Next" /> Here, I also bind …

wpf mvvm parameters commandbinding