Message evaluates parameter when wiring up.

Topics: Actions & Coroutines
Jan 23, 2013 at 3:21 PM

I have a control that I attached a message to:

cal:Message.Attach="[Event Click] = [Action Snapshot(WebCam.CurrentBitmap)]

The problem I am running into is on app startup Caliburn seems to evaluate the parameter which causes an exception to be thrown due to the WebCam control not being ready to serve images to the CurrentBitmap property.


Is there a way to prevent or defer this behavior?