(CLSA 4 / Silverlight 4) SelectedItems

(CLSA 4 / Silverlight 4) SelectedItems

Old forum URL: forums.lhotka.net/forums/t/9022.aspx

Ranjini posted on Wednesday, June 02, 2010

This may have been discussed before and I apologize for the repetition, but I am unablet to find a working solution by searching the blog or the forum.

We are using CSLA 4, and i need to send the SelectedItems property of a ListBox back to the ViewModel to do some processing. I understand it cannot be sent as a regular MethodParameter, so I tried adding it as a dependency property. That will not work either because SelectedItems is a readonly property...

Can someone steer me towards a possible solution?


RockfordLhotka replied on Wednesday, June 02, 2010

You need to set the RebindParameterDynamically property of TriggerAction to true so it rebinds the MethodParameter binding immediately before invoking your viewmodel method.

Ranjini replied on Wednesday, June 02, 2010

Thanks much!!!! That works!

Copyright (c) Marimer LLC