WPF design pattern that provides a generic reusable implementation of ICommand. Versions of this object can be found in the versions of Microsoft Prism.
Questions tagged [delegatecommand]
100 questions
0
votes
2 answers
WPF DelegateCommand RaiseCanExecute
I am trying to use custom delegate command
But, an automatic RaiseCanExecuteChanged does not work properly.
Is it nice to use CommandManagerHelper (every time when application in focus, it raise canexecute changed for every command?
Or I have to…

Alex
- 842
- 11
- 33
0
votes
1 answer
WPF Prism MVVM - Same "Partial View with Command" in one page, how to subscribe the Command?
My project using MVVM design pattern using Prism and Unity, basically following the famous Prism video by Brian Lagunas, but the video didn't mention how to create/use partial view, User Control used in other User Controls.
I'm trying to create…

Winter Winter
- 173
- 2
- 11
0
votes
1 answer
wpf mvvm equality
I would like to use an MVVM in a WPF project I'm working on, including the use of RelayCommands (aka DelegateCommands). I'm running into an interesting but frustration problem in implementing equality for my ViewModels, outlined here. I have a base…

Berryl
- 12,471
- 22
- 98
- 182
0
votes
1 answer
Overloaded method for DelegateCommand
I have a DelegateCommand class and within it 2 constructors. When I pass my property to the constructor of that class I get an error message that says:
Error 1 The best overloaded method match for…

Pallas
- 1,499
- 5
- 25
- 57
0
votes
1 answer
Why isn't my command parameter binding correctly?
I'm trying to bind a button command to take the text of a textbox as a parameter when the button is clicked. My Xaml looks like this:

Raumornie
- 1,444
- 9
- 14
0
votes
0 answers
How to run a method synchronously in a single thread?
I have a method which I only want a thread to run one at a time.
The problem is, the execution of this method is coupled with a Command, so when a user presses a button a few times in a row really fast, my method gets called a few times in a row by…

Davio
- 4,609
- 2
- 31
- 58
0
votes
2 answers
Button: Binding different DelegateCommands depending on the ClickMode value (Press / Release)
Often found answers here, but now it`s my first time ;)
We use the MVVM pattern in conjunction with DelegateCommands. So normally I bind a command to the button like this:
I need to execute…

TottiW
- 82
- 7
0
votes
2 answers
Silverlight button on mainpage, linked to command, never calling the method
I'm brand new to Silverlight and I'm in the deep end a little over my head so I'm probably missing something really obvious. I'm working on an image editor and I have a button on my main page that is supposed to rotate images or text on my canvas.…

Steve
- 29
- 1
- 8
-1
votes
1 answer
Prism DelegateCommand not firing on SelectionChanged
I have the following delegate command:
ViewModel
using Prism.Mvvm;
using System.Collections.ObjectModel;
namespace Photography.ViewModels
{
public class ApertureDataGridViewModel : BaseViewModel
{
private readonly ConnectedRepository _repo = new…

rkamarowski
- 99
- 2
- 8
-1
votes
1 answer
Making Command 1-time-executable
what is best practice to make a DelegateCommand from Prism framework in MVVM only one time executable in order to prevent click-spamming the button which may result in application crashes.
many thanks!

Julian Peil
- 105
- 10