Binds a RoutedCommand to the event handlers that implement the command.
Questions tagged [commandbinding]
201 questions
0
votes
1 answer
When are these events raised, and how are they related? "CommandManager.CanExecute and CanExecute of CommandBinding
When are these events raised, and how are they related? "CommandManager.CanExecute and CanExecute of CommandBinding???

venky
- 11
- 1
0
votes
4 answers
MVVM - Pertaining to WPF command binding standards
I think I have a pretty good understanding of the MVVM design model, however I have a quarm with it in regards to WPF, Command bindings and how we are meant to use them.
To bind commands to the XAML directly we are meant to implement the ICommand…

Aaron Murgatroyd
- 1,506
- 19
- 22
0
votes
1 answer
How can I raise a custom Routed Event from a DataTemplate?
I have a User Control,called dCB_Props that contains several objects, most importantly a ComboBox that's bound to an Observable Collection. Though the collection can take any object, it will normally take a UserControl called EditDeleteItem. I've…

Brownish Monster
- 682
- 1
- 8
- 25
-1
votes
2 answers
wpf Button always disabled (with CommandBinding, CanExecute=True and IsEnabled= True)
Revised: I apologize for missing some important descriptions in the first version, now the problem should be well-defined:
so I'm making a toy CAD program with following views:
MainWindow.xaml
CustomizedUserControl.xaml
CustomizedUserControl is a…

Hank
- 23
- 1
- 6
-1
votes
1 answer
Routed Command Implementation in WPF
I have simple ICommand-Bindings working, however I have Buttons inside an ItemsControl and wanted to get the sender information, like with the normal Routed-Events (object sender, e RoutedEventArgs) and this seems not to be possible with the normal…

Halloween_Udo
- 69
- 2
- 9
-3
votes
2 answers
Why WPF CommandBinding with one button is effecting the other button?
My following code is Implementing a custom WPF Command. I have bonded only the first button (titled Exit) with the CommandBinding so that when Exit button is clicked and e.CanExecute is true in CommandBinding_CanExecute event, the…

nam
- 21,967
- 37
- 158
- 332