EventCommander Error - Cannot get write-only property '....Commanding.EventCommander.Mappings'

Apr 22, 2010 at 9:06 PM
Edited Apr 23, 2010 at 2:21 PM

I am upgrading my .net 3.5 WPF project which is using the Cinch EventCommander class for handling events.  After upgrading to .net 4, I get the following error:

Cannot get write-only property 'MyAssembly.Commanding.EventCommander.Mappings'."

My code looks like this:

<WpfToolkit:DataGrid x:Uid="myGrid" ItemsSource="{Binding MyList}" ........>

            <Behaviors:EventCommander.Mappings>
                <Behaviors:CommandEvent Command="{Binding ShowWindowCommand}" Event="MouseDoubleClick" />
            </Behaviors:EventCommander.Mappings>

....

I want to associate multiple events to this grid so I can't use the SingleEventCommand.

I have not modified the EventCommander or any other such classes at all.  Anyone else seeing this issue after upgrading to .net 4?

Tks.

 

Coordinator
May 9, 2010 at 6:04 AM

This should be ok now see this post for reason http://www.codeproject.com/KB/WPF/CinchII.aspx?msg=3465539#xx3465539xx

May 10, 2010 at 3:01 PM

Thanks so much, Sacha.  This worked for me.

Coordinator
May 11, 2010 at 1:15 PM

Cool, V2 will be so much better.