This project is read-only.

CommandParameter fail !


I use EventToCommandBehavior describe on this page .
I try to use the CommandParameter but the value is always null.
I have recently updated dll with nuget .
I think that the last change break something because when i use the commit 18699 ,all is ok.
Sorry for my English .


killedthedream wrote Apr 15, 2013 at 1:15 PM

Do you bind CommandParameter to a property of an element on the page? When I set CommandParameter to a constant value:
<MyBehavior CommandParameter="Hello"/>
or bind it to a property of my View Model:
<MyBehavior CommandProperty="{Binding ViewModelProperty}"/>
it works fine and CommandProperty is not null, but when I bind CommandProperty to an element on the page like this:
<MyBehavior CommandProperty="{Binding ElementName=SomeTextBox, Path=Text}"/>
then CommandProperty is always null.