Aug 4, 2011 at 5:07 PM

Really struggling trying to determine the best approach to implementing my wpf application into CCA.

Does anyone have any suggestions as to the best way to raise actions and pass data between viewmodels on seperate hosted controls? I'm trying to rid the view codebehind from containing anything, but I don't think inheriting from HostedWpfControl and implementing DoAction on a viewmodel is the correct approach.

Thanks, there seems to be little to no information out there on the interwebs.

Aug 4, 2011 at 5:39 PM

You need to work from the HostedWPF Control as a base,
The FireAction command is the proper way to event between hosted applications and controls.

On the target, you would then catch it in the DoAction method and Raise an event into your view model.
You should also do that with the Notify Context update method


Aug 4, 2011 at 6:00 PM

So for the controls I have bound to RelayCommands on the VM side, I also need to raise an event into the codebehind to call FireAction?

Aug 4, 2011 at 6:11 PM

Depends on your use... FireAction is a blocking action, returning when "doAction" completes on the target control.