OnViewModelCommandExecuted is never called.

Topics: Questions
Jun 21, 2012 at 12:10 PM

Next Problem with the interested in Attribute

In ViewModelA there is a property and a command.

ViewModelB is InterestedIn VieModelA.

OnViewModelPropertyChanged is called when a Property has changed in ViewModelA

OnViewModelCommandExecuted is not called when a command has executed in ViewModelA

Coordinator
Jun 21, 2012 at 4:09 PM

Interesting. We have unit tests for this, but I will check it out tonight.  See http://catel.codeplex.com/workitem/7154.

Coordinator
Jun 21, 2012 at 7:53 PM

I cannot reproduce your issue. Unit tests regarding commands and interestedin succeed. We can only fix this when we have a reproducible case.

Jul 24, 2012 at 2:58 PM

Same here: OnViewModelCommandExecuted is never called. OnViewModelPropertyChanged works fine...

Jul 25, 2012 at 6:13 AM

Hello read my issue: http://catel.codeplex.com/workitem/7154

Maybe this helps

Coordinator
Jul 25, 2012 at 6:52 PM

Do you have a repro? Then I can fix it.

Aug 2, 2012 at 3:46 PM

First i thought i had discovered the same problem, but there isn't an issue with OnViewModelCommandExecuted, right? You have to use the command-constructor with the Tag parameter, as discussed here: http://catel.codeplex.com/discussions/348238. Maybe the documentation could be enhancend here.

Coordinator
Aug 2, 2012 at 3:50 PM

Using the tag is optional, so it is not required.