How can I convert message parameters?

Topics: Actions & Coroutines
Jan 9, 2012 at 1:06 PM
Edited Jan 9, 2012 at 10:14 PM

I was wondering wether it is possible to convert the parameters for an ActionMessage from an EventArgs type to something else. Specifically I don't want to use the ScrollChangedEventArgs used by the ScrollViewer.ScrollChanged event because I can't (easily) instantiate instances of that class for testing purposes (internal constructor).

Is there a way to put something like a value converter in the pipeline?


I hate those people who answer their own questions...

MessageBinder.CustomConverters is what I was looking for. I just needed to add the conversion function there and it worked like a charm. Awesome framework!