Hi,
i handle a ButtonClick in the Ribbon in my ViewModel via Prism's DelegateCommands:So what I'm trying to do is to set the IsChecked-State of the Button after its beeing checked by the user, the state changes, but i get no visual representation of the check(unchecked). If i move the IsChecked-handling to the CanExecute-method, the state also changes, but the visual representation is always checked...
What's wrong here??
Greets,
**Jürgen**
i handle a ButtonClick in the Ribbon in my ViewModel via Prism's DelegateCommands:
public ICommand SignalFilterCommand {get;private set;}
...
SignalFilterCommand = new DelegateCommand<ICheckableCommandParameter>(CommandBinding_Executed,
CommandBinding_CanExecute);
...
...
internal bool CommandBinding_CanExecute(ICheckableCommandParameter parameter)
{
if (parameter != null)
{
parameter.Handled = true;
}
return true;
}
internal void CommandBinding_Executed(ICheckableCommandParameter parameter)
{
if (parameter.Handled)
{
parameter.IsChecked = !parameter.IsChecked;
}
}
What's wrong here??
Greets,
**Jürgen**